Missing case for OP_GETVARG in symbolic execution
Jure Bagić <[email protected]>
| Newsgroups | gmane.comp.lang.lua.general |
|---|---|
| Message-ID | <adotqHWCX2MREfHK@archlinux> |
Hi,
for c037162a in 'ldebug.c:569' the 'getobjname' function there is no
OP_GETVARG case. Is this intended or this part forgot to be updated after
the introduction of named vararg parameters?
For example, the following code will properly tell me the nil
value I attempted to call is a field and it's name:
> local function a(x, ...)
> ({...}).g(); -- or 'local t = {...}; t.g()'
> end
> a();
but not when I use the vararg parameter:
> local function a(x, ...t)
> t.g();
> end
> a();
Putting the OP_GETVARG case together with OP_GETTABLE in 'getobjname' is
quick fix.
--
Jure
--
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/adotqHWCX2MREfHK%40archlinux.
signature.asc
(application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQTilOnPIAgk+VLLAS+FaQJ4QtXaNQUCado2mAAKCRCFaQJ4QtXa NTntAQDF0OWWD8GB5IBUIsOIMhQBo/RMw9X7jhgVQErax6qksAEAjAKdlz0IoTHm JMNtgrlnyHawYnk1eRMX1+NZTw8yhgA= =jTqg -----END PGP SIGNATURE-----