if ( pi_size == NULL )
{
p_data = malloc( MAX_TPDU_SIZE );
+ assert( p_data );
}
for ( ; ; )
uint8_t i_tag;
uint8_t i_slot = p_sys->p_sessions[i_session_id - 1].i_slot;
+ assert( p_spdu );
+
*p++ = ST_SESSION_NUMBER;
*p++ = 0x02;
*p++ = (i_session_id >> 8);
ca_msg_t ca_msg;
int i_ret;
+ assert( p_apdu );
+
*p++ = (i_tag >> 16);
*p++ = (i_tag >> 8) & 0xff;
*p++ = i_tag & 0xff;
else
p_data = malloc( 6 );
+ assert( p_data );
+
p_data[0] = i_list_mgt;
p_data[1] = i_program_number >> 8;
p_data[2] = i_program_number & 0xff;
else
p_data = realloc( p_capmt, i_capmt_size + 5 );
+ assert( p_data );
+
i = i_capmt_size;
p_data[i] = i_type;
i_tag = AOT_ANSW;
i_size = 1 + strlen( p_object->u.answ.psz_answ );
p_data = malloc( i_size );
+ assert( p_data );
p_data[0] = (p_object->u.answ.b_ok == true) ? 0x1 : 0x0;
strncpy( (char *)&p_data[1], p_object->u.answ.psz_answ, i_size - 1 );
break;
i_tag = AOT_MENU_ANSW;
i_size = 1;
p_data = malloc( i_size );
+ assert( p_data );
p_data[0] = p_object->u.menu_answ.i_choice;
break;
d += 2; /* skip answer_text_length because it is not mandatory */
l -= 2;
p_mmi->last_object.u.enq.psz_text = malloc( l + 1 );
+ assert( p_mmi->last_object.u.enq.psz_text );
strncpy( p_mmi->last_object.u.enq.psz_text, (char *)d, l );
p_mmi->last_object.u.enq.psz_text[l] = '\0';
p_sys->p_sessions[i_session_id - 1].pf_close = MMIClose;
p_sys->p_sessions[i_session_id - 1].p_sys = malloc(sizeof(mmi_t));
p_mmi = (mmi_t *)p_sys->p_sessions[i_session_id - 1].p_sys;
+ assert( p_mmi );
p_mmi->last_object.i_object_type = EN50221_MMI_NONE;
}
i_in = i_length - (psz_stringstart - psz_instring );
i_out = i_in * 6;
psz_outstring = psz_tmp = (char*)malloc( i_out + 1 );
+ assert( psz_outstring );
vlc_iconv( iconv_handle, &psz_stringstart, &i_in, &psz_tmp, &i_out );
vlc_iconv_close( iconv_handle );
*psz_tmp = '\0';