This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#10378 - lua causes segfalts when loading a nonexisting file
Attached to Project:
Rockbox
Opened by Daurnimator (daurnimator) - Wednesday, 24 June 2009, 12:16 GMT+2
Last edited by Maurus Cuelenaere (mcuelenaere) - Wednesday, 24 June 2009, 12:39 GMT+2
Opened by Daurnimator (daurnimator) - Wednesday, 24 June 2009, 12:16 GMT+2
Last edited by Maurus Cuelenaere (mcuelenaere) - Wednesday, 24 June 2009, 12:39 GMT+2
|
DetailsMake a lua script that trys to load a non existing file, eg:
loadfile ( "/file" ) OR dofile ( rb.current_path ( ) .. "randomfile" ) run it; A segmentation fault occurs. (At least in my sim) I've tried to narrow it down, and it seems to be causes at line 557 of apps/plugins/lua/lauxlib.c "const char *filename = lua_tostring(L, fnameindex) + 1" ==> if you take away the +1, it works, but I think that would change what its pointing too.... |
This task depends upon
Closed by Maurus Cuelenaere (mcuelenaere)
Wednesday, 24 June 2009, 12:39 GMT+2
Reason for closing: Fixed
Additional comments about closing: In r21488.
Wednesday, 24 June 2009, 12:39 GMT+2
Reason for closing: Fixed
Additional comments about closing: In r21488.
edit:
This seems like it's a mistake in my code, I'll look into it