Fixed off-by-one error in dbFindField().

This commit is contained in:
Andrew Johnson
2006-05-12 15:34:04 +00:00
parent bf45ed3869
commit 73e3411beb
2 changed files with 9 additions and 2 deletions
+8 -1
View File
@@ -9,8 +9,15 @@
<body lang="en">
<h1 align="center">EPICS Base Release 3.14.x</h1>
<h4>dbStaticLib</h4>
<p>Off-by-one buffer overflow error fixed in dbFindField() which only seemed to
affect vxWorks-(intel) targets.</p>
<h4>RTEMS</h4>
<p>Added space for user extensions. This provides the infrastructure for the spy command.</p>
<p>Added space for user extensions. This provides the infrastructure for the
spy command.</p>
<h4>libCom</h4>
+1 -1
View File
@@ -1753,7 +1753,7 @@ long epicsShareAPI dbFindField(DBENTRY *pdbentry,const char *pname)
char **papsortFldName;
short *sortFldInd;
int compare,ind;
char fieldName[MAX_FIELD_NAME_LENGTH];
char fieldName[MAX_FIELD_NAME_LENGTH+1];
char *pfieldName;
if(!precordType) return(S_dbLib_recordTypeNotFound);