public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "wangxuszcn at foxmail dot com" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/28395] New: result.val is aligned malloc pointer, may not be check NULL in allocate_and_init() Date: Wed, 29 Sep 2021 04:00:43 +0000 [thread overview] Message-ID: <bug-28395-131@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=28395 Bug ID: 28395 Summary: result.val is aligned malloc pointer, may not be check NULL in allocate_and_init() Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: wangxuszcn at foxmail dot com Target Milestone: --- diff --git a/elf/dl-tls.c b/elf/dl-tls.c index 34d6f34..1b7d38a 100644 --- a/elf/dl-tls.c +++ b/elf/dl-tls.c @@ -606,7 +609,7 @@ allocate_and_init (struct link_map *map) { struct dtv_pointer result = allocate_dtv_entry (map->l_tls_align, map->l_tls_blocksize); - if (result.val == NULL) + /*result.val is aligned malloc pointer, using to_free instead.*/ + if (result.to_free == NULL) oom (); /* Initialize the memory. */ -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2021-09-29 4:00 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-09-29 4:00 wangxuszcn at foxmail dot com [this message] 2021-09-29 7:38 ` [Bug dynamic-link/28395] " schwab@linux-m68k.org 2021-09-30 4:25 ` wangxuszcn at foxmail dot com 2021-09-30 17:14 ` fweimer at redhat dot com 2024-01-11 8:56 ` fweimer at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-28395-131@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).