Avoid aborts in 'md5'
* src/fns.c (extract_data_from_object): Don't crash if called with an invalid object. (Bug#30627)
This commit is contained in:
parent
9743f48de7
commit
c87d04e05e
1 changed files with 3 additions and 0 deletions
|
@ -4952,6 +4952,9 @@ extract_data_from_object (Lisp_Object spec,
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!STRINGP (object))
|
||||||
|
signal_error ("Invalid object argument",
|
||||||
|
NILP (object) ? build_string ("nil") : object);
|
||||||
return SSDATA (object);
|
return SSDATA (object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue