Menu

#462 Fix instances of sprintf in C code

working
closed
5
2012-09-21
2004-12-30
No

Find and fix all the instances of sprintf in the C code.
Bug # 4145 existed because there was an sprintf(); fixed
by replacing it with snprintf().

Discussion

  • Steven Augart

    Steven Augart - 2005-01-13

    There are far fewer cases than I thought. The remaining ones are in obscure subsystems, specificially:
    ihnpdsm.C (the Intel disassembler)
    and in sys.C's gcspySprintf function, which is contributed code.

     
  • Steven Augart

    Steven Augart - 2005-01-25

    I'm attacking ihnpdsm.C now. Since it's not re-entrant
    (a probable source of mysterious crashes in the past), we
    can address that at the same time.

     
  • Steven Augart

    Steven Augart - 2005-01-26

    I've checked in the changes for the Intel disassembler. The only outstanding ones now are the ones that GCspy uses. I've written the changes for those, but I want Richard Jones to see them before I check them in.

     

Log in to post a comment.