As Bob Frazier wrote: > > Nevertheless, changing the fixed buffers into malloc'ed > > buffers might make a lot of sense. Other programmer > > implementations (like those for the JTAGICEs) already do it > > that way.
> yes - better programming practices for sure. fixed-length buffers on > the stack are the source of *SO* many problems. The fixed-length buffers could be lived with, but then, argument checks would be required instead of blindly assuming every caller calls them with valid parameters (the more since things like the page size are obtained from user-modifiable files). Given that, using malloc() is less work compared to adding all those checks. -- cheers, Joerg .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-) _______________________________________________ avrdude-dev mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/avrdude-dev
