|
From: Julian S. <js...@ac...> - 2005-10-17 23:47:54
|
> I don't think the problem in this case is related to strcpy, it's > because of the weird read in the last line of the program. Oh .. my mistake. I misread the program. So then the question is .. why do you think this program is OK? After all you really are reading off the end of the array you allocated. ISO C I'm fairly sure would say that the behaviour is therefore undefined. > Anyway, isn't there a way to suppress error messages for partially > invalid reads? Not any more. Although it would be feasible to reinstate the partial-loads-ok hack, defaulted to off, I'd much prefer people to fix code which behaves like this. Do you have any further details of what this library is trying to do? Some kind of fast memcpy? J |