fix bugs reported in PR 8848
svn: r7054
This commit is contained in:
parent
4eef47a768
commit
e7a66f2ac9
|
@ -103,7 +103,7 @@ static void initialize_signal_handler()
|
||||||
# ifdef NEED_SIGACTION
|
# ifdef NEED_SIGACTION
|
||||||
{
|
{
|
||||||
struct sigaction act, oact;
|
struct sigaction act, oact;
|
||||||
memset(&act, sizeof(sigaction), 0);
|
memset(&act, 0, sizeof(sigaction));
|
||||||
act.sa_sigaction = fault_handler;
|
act.sa_sigaction = fault_handler;
|
||||||
sigemptyset(&act.sa_mask);
|
sigemptyset(&act.sa_mask);
|
||||||
/* In MzScheme, SIGCHLD or SIGINT handling may trigger a write barrier: */
|
/* In MzScheme, SIGCHLD or SIGINT handling may trigger a write barrier: */
|
||||||
|
|
|
@ -4594,7 +4594,7 @@ static int utf8_decode_x(const unsigned char *s, int start, int end,
|
||||||
/* Continues a sequence ... */
|
/* Continues a sequence ... */
|
||||||
if (state) {
|
if (state) {
|
||||||
/* ... and we're in one ... */
|
/* ... and we're in one ... */
|
||||||
if (!nextbits | (sc & nextbits)) {
|
if (!nextbits || (sc & nextbits)) {
|
||||||
/* and we have required bits. */
|
/* and we have required bits. */
|
||||||
v = (v << 6) + (sc & 0x3F);
|
v = (v << 6) + (sc & 0x3F);
|
||||||
nextbits = 0;
|
nextbits = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user