qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Security house-cleaning


From: Tim
Subject: Re: [Qemu-devel] [PATCH] Security house-cleaning
Date: Thu, 17 Jun 2004 21:13:29 -0700
User-agent: Mutt/1.5.6+20040523i

> nooooope, strcpy has no way of knowing how big the buffer is other than
> what you tell it. It's likely that all (or most) of the buffers that are
> strcpy'd to are initialised to zero / .bss so it doesn't matter in
> reality, but better safe than sorry. What if some buffer is moved to
> stack later, that would expose the latent bug.

Oh... you are right.  It only pads with nulls if the src string is
shorter than the length argument.  I'll fix those and submit a new
version in a day or two.

thanks,
tim




reply via email to

[Prev in Thread] Current Thread [Next in Thread]