Menu

#253 as - crash when file not found for some hosts

None
closed-accepted
Ben Shi
None
5
2015-12-28
2015-12-27
No

Hello SDCC team,

There is a crash when the assembler opens a file thats not there.

It happens on some configs (e.g. WIN32/Debug) because the memory allocated by "new()" is not intialized to zero. Later on "asmc->fp" is used to check if the file is valid, when the program shuts down. It is not, but it thinks so as it in my case is "0xcdcdcdcd" (win32 debug value).

This causes a crash when the program tries to exit, getting a runtime failure.

Please review/apply/reject

Thanks,

/pedro

1 Attachments

Discussion

  • Ben Shi

    Ben Shi - 2015-12-28
    • status: open --> closed-accepted
    • assigned_to: Ben Shi
    • Group: -->
     
  • Ben Shi

    Ben Shi - 2015-12-28

    Applied in reversion [r9430].

     

    Last edit: Maarten Brock 2016-01-02

Log in to post a comment.