lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 16 Mar 2007 02:01:29 +0100
From: Alejandro Barrera <>
Subject: Re: Python 2.5 (Modules/zlib) minigzip local
	buffer overflow vulnerability

> > Thus, replacing strcpy(3) calls with strncpy(3) can have definite
> > impacts on performance.
> But the question is how big impact? Its a security/speed trade-off.

That depends on your actual code. It's not a security/speed trade-off, it's a

If you care about security AND speed then you use strcpy() correctly, if 
you're a lazy bastard and don't care about speed, then use strncpy().

Anyway, usually you should fill the whole buffer, so if you know how to code, 
it shouldn't have a big impact. *BUT* if you're one of those lazy guys that 
just allocate a 1024 char buffer to copy 32 char strings then you have worse 
problems than security.

> Regards.

Alejandro Barrera GarcĂ­a-Orea
R&D Engineer
c/ Alcala 268 28027 Madrid
Office: +34 91 326 66 11
Fax: +34 91 326 66 11

Full-Disclosure - We believe in it.
Hosted and sponsored by Secunia -

Powered by blists - more mailing lists