Skip to content
Snippets Groups Projects
Select Git revision
0 results

cpp.c

  • Arne Goedeke's avatar
    8ad23656
    preprocessor: fixed two bugs when processing literal strings · 8ad23656
    Arne Goedeke authored
    The 'new' syntax for literal strings had these two bugs.
    
    1) Unterminated strings were not correctly handled, resulting in out
       of bounds reads. Note: cpp_error does not throw, it simply prints
       an error message.
    2) Newlines inside literal strings did not increment the current
       line number, which resulted in incorrect information in e.g. error
       messages.
    8ad23656
    History
    preprocessor: fixed two bugs when processing literal strings
    Arne Goedeke authored
    The 'new' syntax for literal strings had these two bugs.
    
    1) Unterminated strings were not correctly handled, resulting in out
       of bounds reads. Note: cpp_error does not throw, it simply prints
       an error message.
    2) Newlines inside literal strings did not increment the current
       line number, which resulted in incorrect information in e.g. error
       messages.