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
On most operating systems, malloc(3) tends to give you zero-filled memory at first.
Not so on OpenBSD! In some cases, the dance between yytext and savedyytext happens BEFORE either of these contains any actual data, thus leading to unterminated strcpy that leads to a segfault.
Activity
Initialize yytext buffers after malloc in yylex.h