forked from osmocom/wireshark
From Robert Groenenberg:
As of version 0.99.8, there has been an annoying problem in the ASN.1 dissector: when using a 'type table' which discribes the ASN.1 syntax of the traced packets, wireshark would crash on the very first packet. The cause for the crash is an out-of- boundry write, detected by g_free(). svn path=/trunk/; revision=27507
This commit is contained in:
parent
23461c4382
commit
ace93cb4bb
|
@ -566,7 +566,7 @@ showoctets(guchar *octets, guint len, guint hexlen) /* if len <= hexlen, always
|
||||||
for (i=0; i<len; i++) {
|
for (i=0; i<len; i++) {
|
||||||
p += g_sprintf(p, "%2.2X", octets[i]);
|
p += g_sprintf(p, "%2.2X", octets[i]);
|
||||||
}
|
}
|
||||||
strncpy(p, endstr, len*2 + 5);
|
strncpy(p, endstr, 5);
|
||||||
} else {
|
} else {
|
||||||
if (len <= hexlen) { /* show both hex and ascii, assume hexlen < MAX_OTSLEN */
|
if (len <= hexlen) { /* show both hex and ascii, assume hexlen < MAX_OTSLEN */
|
||||||
str = p = g_malloc(len*3+2);
|
str = p = g_malloc(len*3+2);
|
||||||
|
|
Loading…
Reference in New Issue