(/home/sate/Testcases/c/cve/wireshark-1.2.0/tap-rtp.c) |
| |
| 63 | | | rtp_streams_stat_draw(void *arg _U_) |
| 64 | | | { |
| 65 | | | |
| 66 | | | |
| 67 | | | GList *list; |
| 68 | | | rtp_stream_info_t* strinfo; |
| 69 | | | gchar *payload_type; |
| 70 | | | guint32 expected; |
| 71 | | | gint32 lost; |
| 72 | | | double perc; |
| 73 | | | char *savelocale; |
| 74 | | | |
| 75 | | | printf("========================= RTP Streams ========================\n"); |
| 76 | | | printf("%15s %5s %15s %5s %10s %16s %5s %12s %15s %15s %15s %s\n","Src IP addr", "Port", "Dest IP addr", "Port", "SSRC", "Payload", "Pkts", "Lost", "Max Delta(ms)", "Max Jitter(ms)", "Mean Jitter(ms)", "Problems?"); |
| 77 | | | |
| 78 | | | |
| 79 | | | savelocale = setlocale(LC_NUMERIC, NULL);
x /usr/include/locale.h |
| |
37 | #define LC_NUMERIC __LC_NUMERIC |
| |
|
Event 1:
NULL is passed to setlocale() as the second argument. - Dereferenced later, causing the null pointer dereference.
hide
Null Pointer Dereference
The body of setlocale() dereferences (void *)0, but it is NULL. The issue can occur if the highlighted code executes. See related event 1. Show: All events | Only primary events |
|
| |