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
Compiling with -O2 optimization causes the pattern string to match any string beginning with the pattern string. astring will match astring_and_anything_else.
Don't use -O2.
The text was updated successfully, but these errors were encountered:
Here is a C standalone file attached as TXT file to github.
checkout magic project,
then configure magic project
then build magic project (this step maybe optional)
place match_main.c in the top level folder
then use command line at of file to compile testcase
then run testcase
note this testcase hits all branch paths inside Match() the profile report command sequence is listed at the top of the file to confirm this
please edit test case to demonstrate the claim in this bug report and report platform details when found
@dlmiles Well, I can't get it to work (by work I mean fail) with the snippet of code you provided. I'll see if I can recreate the problem with the original program.
This issue is just for informational purposes.
Compiling with
-O2
optimization causes the pattern string to match any string beginning with the pattern string.astring
will matchastring_and_anything_else
.Don't use
-O2
.The text was updated successfully, but these errors were encountered: