Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATH_MAX used dangerously -- do we care?



> Yes, decimal digits ARE what's being written into the buffers in the two
> cases where I made the change.  Compare lines 651-656, which I changed,
> to lines 708-711, which I did not change.  Why should DIGBUFSIZE be used
> on 708 but not on 651?

Look at that:

    case PM_INTEGER:
	convbase(s = buf, v->pm->gets.ifn(v->pm), v->pm->ct);
	break;

convbase can overflow a DIGBUFSIZE'ed buf.

Zoltan




Messages sorted by: Reverse Date, Date, Thread, Author