Secure Programming
Back to list
Name:
Email:
*Note: Email address will appear as "user domain ext" to prevent harvesting.
Subject:
Message:
Re[2]: Are bad developer libraries the problem with M$ software?
Nov 21 2002 04:34PM
dullien gmx de
Hey John,
JV> 1) sizeof(dst) is very often going to be sizeof(char *) which is 2, no matter
JV> how much space is malloc'd.
Small correction: It should be 4 on most 32-bit platforms, possibly 8
on 64-bit address cpu's
JV> 2) Even if sizeof(dst) did give the right answer in all cases, your macro...
[ more ]
Privacy Statement
Copyright 2010, SecurityFocus
JV> 1) sizeof(dst) is very often going to be sizeof(char *) which is 2, no matter
JV> how much space is malloc'd.
Small correction: It should be 4 on most 32-bit platforms, possibly 8
on 64-bit address cpu's
JV> 2) Even if sizeof(dst) did give the right answer in all cases, your macro...
[ more ]