You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is my understanding that strlen( NULL ) is undefined behaviour. I expect there are platforms that will return 0 for this case and thus silently continue.
Removing the assert and changing 157 to check for NULL fixes the crash:
Following causes a crash:
enable_debug prints:
The culprit is the strlen check here:
https://github.com/mruby/mruby/blob/master/src/debug.c#L157
It is my understanding that strlen( NULL ) is undefined behaviour. I expect there are platforms that will return 0 for this case and thus silently continue.
Removing the assert and changing 157 to check for NULL fixes the crash:
I don't consider this a solution as it results in __FILE__ printing as (null), rather than anything meaningful.
In the case of __FILE__ without a file-name, what is the expected output? Is there a mechanism for defining the value for __FILE__?
The text was updated successfully, but these errors were encountered: