diff options
author | Karolin Seeger <kseeger@samba.org> | 2013-12-09 07:10:12 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2013-12-09 07:10:12 +0100 |
commit | ff99526b5cd8b85de7d8e20fbe35c17935e2b0e7 (patch) | |
tree | a1f92bcef8ac64dd7f559fa633012cd4613e239e /libcli | |
parent | bfdf0984af539d40bcbfec75b1ee65a2808857a4 (diff) | |
parent | 6898c4dbf993889a804e77dd6cb32e0be50f653f (diff) | |
download | samba-ff99526b5cd8b85de7d8e20fbe35c17935e2b0e7.tar.gz |
Merge tag 'samba-4.1.3' into v4-1-test
samba: tag release samba-4.1.3
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/util/tstream.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libcli/util/tstream.c b/libcli/util/tstream.c index 12cef9b6dd..dd830e2aa4 100644 --- a/libcli/util/tstream.c +++ b/libcli/util/tstream.c @@ -129,6 +129,11 @@ static void tstream_read_pdu_blob_done(struct tevent_req *subreq) return; } + if (new_buf_size <= old_buf_size) { + tevent_req_nterror(req, NT_STATUS_INVALID_BUFFER_SIZE); + return; + } + buf = talloc_realloc(state, state->pdu_blob.data, uint8_t, new_buf_size); if (tevent_req_nomem(buf, req)) { return; |