diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-04 12:05:28 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-04-04 12:05:28 +0000 |
commit | 91e02eb209a6571429a00fa71854709dfc18ac99 (patch) | |
tree | 553f7e49a37a359d7a5abf075ad466e4cab24c70 /obj.c | |
parent | 798acf51b482387a2702bd4064d538d7b3bedaa3 (diff) | |
download | rsyslog-91e02eb209a6571429a00fa71854709dfc18ac99.tar.gz rsyslog-91e02eb209a6571429a00fa71854709dfc18ac99.tar.bz2 rsyslog-91e02eb209a6571429a00fa71854709dfc18ac99.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)); |