diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-04 12:04:54 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-04 12:04:54 +0000 |
commit | cd9762ddae5e0350ede5431c88346690799a688e (patch) | |
tree | 14dae2715bf09b56b58fc0ff84b06803da4e08fa /obj.c | |
parent | 10da14f1a80b83feaf048c7bfa608f680a6b11d4 (diff) | |
download | rsyslog-cd9762ddae5e0350ede5431c88346690799a688e.tar.gz rsyslog-cd9762ddae5e0350ede5431c88346690799a688e.tar.xz rsyslog-cd9762ddae5e0350ede5431c88346690799a688e.zip |
bugfix: zero-length strings were not supported in object deserializer
Diffstat (limited to 'obj.c')
-rw-r--r-- | obj.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -495,7 +495,7 @@ finalize_it: } -/* de-serialize a string, length must be provided */ +/* de-serialize a string, length must be provided but may be 0 */ static rsRetVal objDeserializeStr(cstr_t **ppCStr, int iLen, strm_t *pStrm) { DEFiRet; @@ -504,7 +504,7 @@ static rsRetVal objDeserializeStr(cstr_t **ppCStr, int iLen, strm_t *pStrm) cstr_t *pCStr = NULL; assert(ppCStr != NULL); - assert(iLen > 0); + assert(iLen >= 0); CHKiRet(rsCStrConstruct(&pCStr)); |