func: static char *CVE_2013_0874_PATCHED_shorts2str(int16_t *sp, int count, const char *sep) int i ; char * ap , * ap0 ; uint64_t component_len ; if ( ! sep )  sep = ", "; component_len = 7L L + strlen ( sep ) if ( count >= ( INT_MAX - 1 ) / component_len )  ap = av_malloc ( component_len * count + 1 ); if ( ! ap )  ap0 = ap; ap [ 0 ] = '\0'; for (i = 0; i < count; i++) unsigned l = snprintf ( ap , component_len , "%d%s" , sp [ i ] , sep ) ; if ( l >= component_len )  ap += l; ap0 [ strlen ( ap0 ) - strlen ( sep ) ] = '\0'; return ap0 ; 