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
Bug description:
The sizeof operation in C can be in two forms: "sizeof(var)" or "sizeof var". In the latter case, Milu cannot process such code correctly but print unmatched parenthesis.
void main(int argc, char** argv){
func();
}
2. Run Milu to generate mutants on "bug.c", with the default set of operators, but add option "--debug=src":
$ path\to\milu --debug=src bug.c
3. The output will be the original code being parsed and printed without any modification:
Bug description:
The sizeof operation in C can be in two forms: "sizeof(var)" or "sizeof var". In the latter case, Milu cannot process such code correctly but print unmatched parenthesis.
How to recreate the bug:
include<stdlib.h>
include<stdio.h>
void func()
{
void* msg;
printf("%lu\n", sizeof msg);
if(msg == 0);
}
void main(int argc, char** argv){
func();
}
2. Run Milu to generate mutants on "bug.c", with the default set of operators, but add option "--debug=src":
$ path\to\milu --debug=src bug.c
3. The output will be the original code being parsed and printed without any modification:
include<stdlib.h>
include<stdio.h>
void func ( )
{
void * msg ;
printf ( "%lu\n"
, sizeof msg )
) ;
if ( msg == 0 ) ;
}
;
void main ( int argc , char * * argv )
{
func ( ) ;
}
Temporary Solution for users:
Enclose the argument of sizeof in parentheses.
The text was updated successfully, but these errors were encountered: