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
Applied in reversion [r9430].
Last edit: Maarten Brock 2016-01-02