Bug#534641: mendex bug
On Sa, 07 Sep 2013, Karl Berry wrote:
> As you know, it was part of the general Japanese-TeX import into TL, so
> I suppose you and Akira are :), with the rest of us chipping in as
> necessary.
>
> Please apply whatever patch you see fit.
Ok, will do that.
> #define TAIL(x) (x+strlen(x))
>
> The first x on the RHS should be parenthesized, as a matter of general
> programming practice:
> ((x)+strlen(x))
Ok, wil ldo that, too.
> > sprintf(tmpbuff,"%s%s%s",encap_prefix,ind.p[j].enc,encap_infix);
>
> In general, shouldn't snprintf be used to avoid the whole potential of
> buffer overrun?
I will take a look at it and see if I can get rid of some of
those.
Norbert
------------------------------------------------------------------------
PREINING, Norbert http://www.preining.info
JAIST, Japan TeX Live & Debian Developer
DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
------------------------------------------------------------------------
Reply to: