Red Hat Bugzilla – Bug 143795
strange address arithmetic
Last modified: 2007-11-30 17:10:57 EST
Description of problem:
I just tried to compile package php-5.0.2-8 from
Redhat Fedora development tree.
The compiler said
warning #175: subscript out of range
The source code is
int *p = tmp + sizeof(tmp);
so sizeof( tmp) is 4 * 64 == 256 bytes, so p seems to be pointing into
the middle of nowhere. Maybe
int *p = &tmp[ 0] + (sizeof(tmp) / sizeof(
was intended ?
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Thanks, your fix looks correct, I've committed this upstream too.
Patch integrated in Raw Hide, thanks for the report.