🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.bugs
Article #2254

Bug found in vcal

#2254
From: Karl Tombre
Date: Wed, 31 May 1989 10:36
32 lines
1467 bytes
I found what I firmly believe is a bug in vcal, written by Mike Essex
and distributed in comp.sources.whatever some time ago.

Maybe this problem was already mentioned ; in that case I missed the article.

Here is a context diff. The bug is quite obvious, and does strange
things to message number 79 in the appointments file.

*** vcal.c~	Wed May 31 11:58:30 1989
--- vcal.c	Wed May 31 12:19:39 1989
***************
*** 802,808
  	    tmpbuf[k] = NULL;
  	    msgdata[i] = malloc(80);
  	    strncpy(msgdata[i],tmpbuf,80);
! 	    msgdata[79] = NULL;
  
  	    if (i >= maxentries) {
  		printf("Warning:  Over 1000 entries in data file.  Data truncated.\n");

--- 802,808 -----
  	    tmpbuf[k] = NULL;
  	    msgdata[i] = malloc(80);
  	    strncpy(msgdata[i],tmpbuf,80);
! 	    msgdata[i][79] = NULL;
  
  	    if (i >= maxentries) {
  		printf("Warning:  Over 1000 entries in data file.  Data truncated.\n");

-- 
--- Karl Tombre @ CRIN / INRIA Lorraine
EMAIL : tombre@loria.crin.fr - POST : BP 239, 54506 VANDOEUVRE CEDEX, France
Technical Details
Message-ID: <24@loria.crin.fr>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!inria!loria!tombre

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!inria!loria!tombre
From: tombre@loria.crin.fr (Karl Tombre)
Newsgroups: comp.sources.bugs
Subject: Bug found in vcal
Message-ID: <24@loria.crin.fr>
Date: 31 May 89 10:36:21 GMT
Reply-To: tombre@loria.crin.fr (Karl Tombre)
Organization: CRIN - INRIA Lorraine, Nancy, France
Lines: 32