Print this page
smatch clean rtld
*** 273,284 ****
*
* Note, even if no TLS has yet been observed, we still supply a
* TLS buffer with a single null entry. This allows us to initialize
* the backup TLS reservation.
*/
! if ((tlsmodlist = calloc((sizeof (TLS_modinfo *) * (tlsmodcnt + 1)) +
! (sizeof (TLS_modinfo) * tlsmodcnt), 1)) == NULL)
return (0);
lml->lm_tls = 0;
/*
--- 273,284 ----
*
* Note, even if no TLS has yet been observed, we still supply a
* TLS buffer with a single null entry. This allows us to initialize
* the backup TLS reservation.
*/
! if ((tlsmodlist = calloc(1, (sizeof (TLS_modinfo *) * (tlsmodcnt + 1)) +
! (sizeof (TLS_modinfo) * tlsmodcnt))) == NULL)
return (0);
lml->lm_tls = 0;
/*