bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18610: 24.4.50; Specific file causing emacs to segfault upon opening


From: Andreas Schwab
Subject: bug#18610: 24.4.50; Specific file causing emacs to segfault upon opening
Date: Fri, 03 Oct 2014 17:16:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

> Btw, there's one more issue that bothers me.  In ONE_MORE_BYTE we have
> this:
>
>     c = *src++;                                               \
>     if (multibytep && (c & 0x80))                     \
>       {                                                       \
>       if ((c & 0xFE) == 0xC0)                         \
>         c = ((c & 1) << 6) | *src++;                  \
>       else                                            \
>         {                                             \
>           src--;                                      \
>           c = - string_char (src, &src, NULL);        \
>           record_conversion_result                    \
>             (coding, CODING_RESULT_INVALID_SRC);      \
>         }                                             \
>       }                                                       \
>
> If 'src' is a signed type

It never is.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."





reply via email to

[Prev in Thread] Current Thread [Next in Thread]