Skip to content

Commit

Permalink
log stream size not only length and connection count
Browse files Browse the repository at this point in the history
it makes it easier to debug buffer overrun.
  • Loading branch information
metalefty authored and jsorg71 committed Jan 30, 2017
1 parent c0d6bae commit 045c6fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions module/rdpClientCon.c
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,9 @@ rdpClientConSendMsg(rdpPtr dev, rdpClientCon *clientCon)

if (len > s->size)
{
LLOGLN(0, ("rdpClientConSendMsg: overrun error len %d count %d",
len, clientCon->count));
LLOGLN(0, ("rdpClientConSendMsg: overrun error len, %d "
"stream size %d, client count %d",
len, s->size, clientCon->count));
}

s_pop_layer(s, iso_hdr);
Expand Down

0 comments on commit 045c6fa

Please sign in to comment.