From 09fab352b0ea8e96d5341c5807b3aacee3c7bfc7 Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Mon, 13 Apr 2015 17:13:09 +0200 Subject: [PATCH] dbstatic: raise link field length limit to 256 by bumping internal buffer size --- documentation/RELEASE_NOTES.html | 7 +++++++ src/ioc/dbStatic/dbStaticLib.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/documentation/RELEASE_NOTES.html b/documentation/RELEASE_NOTES.html index a901b5190..76f7a824a 100644 --- a/documentation/RELEASE_NOTES.html +++ b/documentation/RELEASE_NOTES.html @@ -14,6 +14,13 @@

Changes between 3.15.1 and 3.15.2

+

Raised limit on link field length in database files

+ +

The length of INP/OUT link fields in database files was limited to 79 chars +by an internal buffer size in the db file parser. This limitation will go away +completely in 3.16, and has been statically raised to 255 chars for the 3.15 +series.

+

aoRecord raw conversion overflows

The ao record type now checks converted raw values and limits them to the diff --git a/src/ioc/dbStatic/dbStaticLib.c b/src/ioc/dbStatic/dbStaticLib.c index dfbf3ab14..4f6990cfb 100644 --- a/src/ioc/dbStatic/dbStaticLib.c +++ b/src/ioc/dbStatic/dbStaticLib.c @@ -2087,7 +2087,7 @@ long dbPutString(DBENTRY *pdbentry,const char *pstring) case DBF_OUTLINK: case DBF_FWDLINK: { DBLINK *plink; - char string[80]; + char string[256]; char *pstr = string; if (!pfield)