[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
large integer truncation in regex module
From: |
Gianluigi Tiesi |
Subject: |
large integer truncation in regex module |
Date: |
Sun, 25 Mar 2012 06:28:34 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 5.2; WOW64; rv:11.0) Gecko/20120312 Thunderbird/11.0 |
While compiling regex module one android I've discovered a problem that
on other 32bit compiler is only a warning
in regcomp.c at 961
dfa->word_char[0] = UINT64_C (0x03ff000000000000);
dfa->word_char[1] = UINT64_C (0x07fffffe87fffffe);
the datatype is defined as unsigned long
but since the code is surrounded by an if
if (BITSET_WORD_BITS == 64)
it's correct, but I think an ifdef may be used instead since
BITSET_WORD_BITS is a define, it should be ok
Regards
--
Gianluigi Tiesi <address@hidden>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
Q: Because it reverses the logical flow of conversation.
A: Why is putting a reply at the top of the message frowned upon?
- large integer truncation in regex module,
Gianluigi Tiesi <=