CVS update: samba/source
Andrew Tridgell
tridge at samba.anu.edu.au
Fri Dec 26 10:02:01 EST 1997
Date: Friday December 26, 1997 @ 10:02
Author: tridge
Update of /data/cvs/samba/source
In directory samba:/tmp/cvs-serv17041
Modified Files:
nmbd_winsserver.c util.c
Log Message:
fixed a couple of illegal uses of scanf() in the nmbd wins code. They
caused a core dump under IRIX when compiled with -64.
In general you cannot assume things about variable sizes. In
particular sizeof(time_t) may not equal sizeof(long) and
sizeof(uint16) may not equal sizeof(short).
There are probably other bugs like this. We'll need to check all
format statements for use of %ld, %hx etc. In general these should not
be used unless you have an explicit cast to the appropriate type.
More information about the samba-cvs
mailing list