bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KVC bug


From: Manuel Guesdon
Subject: KVC bug
Date: Wed, 27 Feb 2002 09:46:42 +0100 (CET)

Hi,

There's a bug in KVC. 
When constructing setValue:forKey: method name, the method in has garbage at 
the end (after the ':').
In NSKeyValueCoding.m, I think there should be a
      buf[size+5] = '\0';
after each
         buf[size+4] = ':';

BTW, is it possible to use strncpy instead of strcpy each time it's possible to 
try to minimize buffer overflows, even if
size seems to be well known ?

Manuel
--
______________________________________________________________________
Manuel Guesdon - OXYMIUM <address@hidden>
14 rue Jean-Baptiste Clement  -  93200 Saint-Denis  -  France
Tel: +33 1 4940 0999  -  Fax: +33 1 4940 0998




reply via email to

[Prev in Thread] Current Thread [Next in Thread]