* src/doc.c (Fsnarf_documentation): Verify that indeed end is not
NULL. If it is NULL then report a file format error.
Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
/* p points to ^_Ffunctionname\n or ^_Vvarname\n. */
if (p != end) {
end = strchr(p, '\n');
+ if (end == NULL) {
+ report_file_error("Bad format in file",
+ Fcons(build_string(name), Qnil));
+ close(fd);
+ return Qnil;
+ }
sym =
oblookup(Vobarray, (Bufbyte *) p + 2, end - p - 2);
if (SYMBOLP(sym)) {