TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Kurt Kuzba
from: Simon Avery
date: 1998-08-30 07:51:18
subject: 100% (?) ANSI/ISO-complia

Kurt Kuzba on 25 Aug 98 in C_ECHO

Hello Kurt

 KK>    buf = malloc(16384);
 KK>       file_size += (block_read = fread(buf, 16384, 1, fp));

Erm, where space for terminating null?

You're reading in 16384 bytes into a space of 16384, and the terminator's
going to overrun, surely?

--
Simon

--- Digital Dilemma
* Origin: Feeds or points available for LandNet (2:255/90)
SEEN-BY: 396/1 622/419 632/0 371 633/260 267 270 371 634/397 635/506 728 810
SEEN-BY: 639/252 670/213 218
@PATH: 255/90 3 1 251/25 2320/38 270/101 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.