mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Fix error handling in decode_base64()
This commit is contained in:
parent
b6def63167
commit
e34562df48
3 changed files with 8 additions and 2 deletions
4
CHANGES
4
CHANGES
|
@ -1,4 +1,8 @@
|
|||
|
||||
3.1.0-dev.242 | 2019-11-04 09:58:53 -0800
|
||||
|
||||
* Fix error handling in decode_base64() (Jon Siwek, Corelight)
|
||||
|
||||
3.1.0-dev.241 | 2019-11-04 09:44:20 -0800
|
||||
|
||||
* Revert recent changes to Base64.h API. (Jon Siwek, Corelight)
|
||||
|
|
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
3.1.0-dev.241
|
||||
3.1.0-dev.242
|
||||
|
|
|
@ -230,7 +230,9 @@ BroString* decode_base64(const BroString* s, const BroString* a, Connection* con
|
|||
char* rbuf2, *rbuf = new char[rlen];
|
||||
|
||||
Base64Converter dec(conn, a ? a->CheckString() : "");
|
||||
if ( dec.Decode(s->Len(), (const char*) s->Bytes(), &rlen, &rbuf) == -1 )
|
||||
dec.Decode(s->Len(), (const char*) s->Bytes(), &rlen, &rbuf);
|
||||
|
||||
if ( dec.Errored() )
|
||||
goto err;
|
||||
|
||||
rlen2 = buf_len - rlen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue