[Originally sent 19 Mar 2014, but I haven't seen it show up in the
archives.]
I just received a bug report for the Fedora build of XEmacs:
https://bugzilla.redhat.com/show_bug.cgi?id=1078159
What seems to have happened is that determine_real_coding_system
(file-coding.c) was called, and tried to read some data from the lstream.
However, Lstream_read encountered an error of some kind, I don't know
what. This resulted in an empty buffer, and nread == -1. We then
proceeded to pass the empty buffer and the count of -1 to
detect_coding_type, which used the count of -1 to justify walking off the
end of allocated memory, thereby triggering a segfault.
We need to notice the Lstream_read failure and bail out of
determine_real_coding_system. I'm not entirely sure of the right way to do
that. If one of you coding system master could suggest something, I'd
appreciate it.
--
Jerry James
http://www.jamezone.org/
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta