You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C will merge those strings without spaces, so you get print {asdf}print{jkl;}. If you use commas in the variadic API the way you're supposed to, it will work correctly.
It's an easy mistake to make, especially because it works sometimes. e.g. the catch [print is legal to not have a space.
Source analysis could catch these cases. It also might be nice if __FILE__ and __LINE__ information could be injected by some preprocessing step so the scanner could have that data:
If you write:
C will merge those strings without spaces, so you get
print {asdf}print{jkl;}
. If you use commas in the variadic API the way you're supposed to, it will work correctly.It's an easy mistake to make, especially because it works sometimes. e.g. the
catch [print
is legal to not have a space.Source analysis could catch these cases. It also might be nice if
__FILE__
and__LINE__
information could be injected by some preprocessing step so the scanner could have that data:This would be optional, but very useful.
The text was updated successfully, but these errors were encountered: