Alexander Best <arun...@freebsd.org> writes:
> Dag-Erling Smørgrav <d...@des.no> writes:
> > Alexander Best <arun...@freebsd.org> writes:
> > > so how about forgetting about expand_number() and simply
> > > introducing a maximum buffer size of 1 megabyte?
> > so how about just leaving the code alone?  :)
> i thought you wanted to have a maximum buffer size of 1MB in fetch?

Yes, I was just commenting on the highly roundabout way we followed only
to end up almost at the status quo.

> right now -B can be any value and it's quite easy to trigger ENOMEM.

"don't do that, then!"

My suggestion is that if you're going to change it at all, use
expand_number() *and* limit it to 1 MB.

DES
-- 
Dag-Erling Smørgrav - d...@des.no
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to