On Mon, Jul 18, 2005 at 07:02:50PM +0200, Pierre Habouzit wrote: > if *p (that in fact points to an arg of gz_open) has more than > 80chars, it is copied to a buffer named fmode, that is passed as an arg > of fopen. sometimes fmode may not be NULL terminated, and then a file
...which looks awfully like a bug on the part of the calling program. > a possible patch is attached. I feel it would be better to bounds check the string and return an error if that fails so that the calling program can be fixed. -- "You grabbed my hand and we fell into it, like a daydream - or a fever." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

