Menu

#4 arcdie is used with a varying number of arguments

v1.0 (example)
wont-fix
nobody
None
5
2015-04-11
2013-03-14
No

The calls to "arcdie" use 2 or more arguments, even though arcdie requires exactly 4 arguments:

void arcdie(signed char * s, signed int arg1, signed int arg2, signed int arg3);

Varying the number of arguments when the function isn't declared as such is not supported in C and will necessarily cause a stack underflow. This may not be critical here as arcdie supposedly exits immediately, but it might cause spurious crashes.

Best,
Michael

Discussion

  • Howard Chu

    Howard Chu - 2015-04-11
    • status: open --> wont-fix
    • Group: --> v1.0 (example)
     
  • Howard Chu

    Howard Chu - 2015-04-11

    Since arcdie's job is to exit, there's nothing to fix here.

     

Log in to post a comment.

Monday.com Logo