thanks. fix will appear shortly in binutils tree.
On Tuesday 16 September 2003 12:48, Daniel Néri wrote: > > I believe I have found a bug in the msp-gcc compiler. The simple > > program attached should illustrate the problem. > > The error is in the assembler, not the compiler. It is a buffer that > is too small and overflows because of a common strncpy error[*]. > > I'm not too familiar with this code but the patch below (relative to > binutils 2.14) fixes the problem for me. > > > Regards, > Daniel > > [*] This is exactly why strlcpy was invented: > http://www.courtesan.com/todd/papers/strlcpy.html -- /***************************************************************** ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ `6_ 6 ) `-. ( ).`-.__.`) State Polytechnical Univ. (_Y_.)' ._ ) `._ `. ``-..-' Radio-Physics Departament _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia (il),-'' (li),' ((!.-' +7 (812) 5403923, 5585314 *****************************************************************/