Menu

#382 Segfault on Solaris, perhaps HP/UX as well, printf functions

v1.0_(example)
closed
None
3
2023-07-08
2005-04-29
Curt Mills
No

Sending a NULL parameter to snprintf() results in a segfault.
Check all of the *printf() functions for this. On Linux this doesn't
cause a problem.

Discussion

  • Chris Bell

    Chris Bell - 2005-04-29

    Logged In: YES
    user_id=523650

    all of interface.c has been inspected, and fixes checked in.

    It is actually only NULL pointers (if set to "" [a null
    terminated empty string]
    they are OK) in %s string args to
    any of the printf() functions. Internally printf calls
    strlen() that actually crashes.

    Kind of funny that snprintf() that is supposed to help
    protect us, actually crashed! oops!

     
  • Chris Bell

    Chris Bell - 2005-04-29

    Logged In: YES
    user_id=523650

    still more places to fix.

     
  • Curt Mills

    Curt Mills - 2005-09-09

    Logged In: YES
    user_id=448632

    Lowering the priority as the main offenders have been fixed. There are
    probably a lot more that can be fixed yet, so the bug report remains
    open.

     
  • Tom Russo

    Tom Russo - 2023-07-08
    • Description has changed:

    Diff:

    
    
    • status: open --> closed
    • Group: --> v1.0_(example)
     
  • Tom Russo

    Tom Russo - 2023-07-08

    The Xastir project no longer uses sourceforge for issue tracking and I am closing all open issues (all of which are very old).

    If this issue is still important, please open a new one on https://github.com/Xastir/Xastir.

     

Log in to post a comment.