OSDN Git Service

lib: Fix missing DTD validation while accessing SDP data elements
authorAnderson Lizardo <anderson.lizardo@openbossa.org>
Fri, 15 Feb 2013 15:07:48 +0000 (11:07 -0400)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 18 Feb 2013 07:59:35 +0000 (09:59 +0200)
commitfcb9ece0f9ef5b141634be945690757c425aa45a
tree57ff8f7fd00d15f4e99835649e16af320477a3dd
parent9e2d91bc75ce093f3a8ff40288c3da0f19fae38d
lib: Fix missing DTD validation while accessing SDP data elements

It is necessary to validate the sdp_data_t "dtd" field before accessing
the "val" union members, specially when handling SDP_SEQ*, SDP_ALT* and
SDP_STR* elements, otherwise remote devices can trigger memory
corruption by passing invalid data elements where others are expected.
lib/sdp.c