mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 03:11:52 +01:00
Cast Elf_Addr to void * to match the free_aligned() argument type.
Found by: gcc Sponsored by: The FreeBSD Foundation MFC after: 6 days
This commit is contained in:
parent
24447bc592
commit
6cd2b1dc63
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=259072
@ -4369,11 +4369,11 @@ free_tls(void *tls, size_t tcbsize, size_t tcbalign)
|
||||
tlsstart = tlsend - size;
|
||||
for (i = 0; i < dtvsize; i++) {
|
||||
if (dtv[i + 2] != 0 && (dtv[i + 2] < tlsstart || dtv[i + 2] > tlsend)) {
|
||||
free_aligned(dtv[i + 2]);
|
||||
free_aligned((void *)dtv[i + 2]);
|
||||
}
|
||||
}
|
||||
|
||||
free_aligned(tlsstart);
|
||||
free_aligned((void *)tlsstart);
|
||||
free((void*) dtv);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user