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

Bug#534641: [ptex:00349] mendex bug



Hi Norbert,

I looked through the current sources in TeX Live and found that
in fwrite.c, function range_check:
         if (strlen(ind.p[j].enc)>0) {
           sprintf(tmpbuff,"%s%s%s",encap_prefix,ind.p[j].enc,encap_infix);
           sprintf(tmpbuff,"%s%s%s",ind.p[j].page,encap_suffix,delim_n);
           linecheck(lbuff,tmpbuff);
         }
that looks suspicious. The tmpbuff is overwritten on the second
incantation, ...

I searched for similar lines in fwrite.c  (see an attached fwrite.c.diff).
I think these are apparently bugs.
If I'm not wrong, please commit them.

Thanks,
Akira

Attachment: fwrite.c.diff
Description: Binary data


Reply to: