HP-UX Multimedia Streaming Protocols (MSP) Programmer's Guide

The sdp_create_buf API may dump core the application if a wrong pointer to the
API is passed, as in the following cases:
The sdp_create_buf is called before allocating the first argument sdp using
sdp_init, and filling up using sdp_add* routines.
*sdp_buf == NULL, sdp_create_buf allocates the buffer using malloc, which
needs to be freed by free.
If *sdp_buf!= NULL, the caller needs to allocate and free the buffer. In this case,
*bufsize should contain the maximum size of the buffer.
The sdp_get API
The definition of sdp_get is as follows:
sdp_get*(sdp_t *sdp,..);
The sdp_get API may dump core the application if sdp_parse_buf and sdp_add*
APIs do not initialize and fill up sdp.
84 Troubleshooting MSP