Menu

#18 Long Pathname crashes hex2bin

v1.0.12
closed-fixed
nobody
None
5
2016-10-15
2016-09-22
Anonymous
No

Version 2.2 as ar back as 1.0.10 has the issue.

If the path is >96 (or 99) characters long and the filename after it, hex2bin crashes without any errot details.

Discussion

  • Jacques Pelletier

    In common.h, the filename size is defined at 81 characters.

    /* FIXME how to get it from the system/OS? */
    #define MAX_FILE_NAME_SIZE 81
    

    For a quick fix, change the value to a higher number. I'll make a proper fix in the next version. Thanks!

     
  • Jacques Pelletier

    • status: open --> closed-fixed