[tex-live] Array size mismatch on texk/web2c/luatexdir/luafontloader/fontforge/fontforge/psread.c
Dr. Werner Fink
werner at suse.de
Thu Oct 20 10:59:48 CEST 2011
Hi,
one more, the compiler also shows a warning on line 400 and 401 within
the function ioescapestopped() of
texk/web2c/luatexdir/luafontloader/fontforge/fontforge/psread.c
static int ioescapestopped(IO *wrapper, struct psstack *stack, int sp) {
_IO *io = wrapper->top, *iop;
int wasstopped;
while ( io->prev!=NULL ) {
iop = io->prev;
wasstopped = io->isstopped;
free(io->start);
free(io);
if ( wasstopped ) {
wrapper->top = iop;
if ( sp<(int)(sizeof(stack)/sizeof(stack[0])) ) {
stack[sp].type = ps_bool;
stack[sp++].u.tf = true;
}
return(sp);
}
io = iop;
}
... IMHO the sizeof(stack) with stack a pointer does not the size of
the array used at line 1612 where ioescapestopped() is used.
The attached patch should fix this issue.
Werner
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: source-overflow.dif
Type: text/x-patch
Size: 1062 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20111020/439a36a7/attachment.bin>
More information about the tex-live
mailing list