FAKE_CELL
Michel Arboi <[email protected]> Sun, 30 Jan 2005 13:20:45 +0100
| Newsgroups | gmane.comp.security.nessus.devel |
|---|---|
| Message-ID | <[email protected]> |
Internally, the NASL interpretor uses two C values to return nothing in NASL: NULL (= (void*)0) when there is an error, and FAKE_CELL (= (void*) 1) when everything is OK. The behaviour of the interpretor changes if it is compiled with STOP_AT_FIRST_ERROR but this was never used, and will probably never be. I suggest that FAKE_CELL is removed, as it is useless and error prone (you have to test c == NULL || c == FAKE_CELL before derefencing the pointer, otherwise SEGV is the punishment). Has the defense anything to say to save the life of this constant? _______________________________________________ Nessus-devel mailing list [email protected] http://mail.nessus.org/mailman/listinfo/nessus-devel