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

Bug#534641: mendex bug



    I am not sure who is currently maintaining mendex, 

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. 

    #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))

    >            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?

karl


Reply to: