public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/13067] New: obstack_free casts char* to int
@ 2011-08-08 22:26 marc.glisse at normalesup dot org
  2011-08-08 22:28 ` [Bug libc/13067] " marc.glisse at normalesup dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: marc.glisse at normalesup dot org @ 2011-08-08 22:26 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13067

           Summary: obstack_free casts char* to int
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: marc.glisse@normalesup.org


Created attachment 5885
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5885
Cast to char*

Hello,

in malloc/obstack.h, the version of obstack_free for non-gnu or non-stdc casts
a pointer to an int. The result is ignored, so that's not a problem, except
that it may cause compilation warnings or even errors (in C++). The cast is
done to match the type of 0 in the ?: alternative. The patch instead casts 0 to
char*.

I originally posted a similar patch for gcc's version of obstack.h and was
advised to post it here.
http://gcc.gnu.org/ml/gcc-patches/2011-08/msg00758.html

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/13067] obstack_free casts char* to int
  2011-08-08 22:26 [Bug libc/13067] New: obstack_free casts char* to int marc.glisse at normalesup dot org
@ 2011-08-08 22:28 ` marc.glisse at normalesup dot org
  2011-09-11 17:05 ` drepper.fsp at gmail dot com
  2014-06-27 12:41 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: marc.glisse at normalesup dot org @ 2011-08-08 22:28 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13067

Marc Glisse <marc.glisse at normalesup dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #5885|0                           |1
           is patch|                            |
   Attachment #5885|application/octet-stream    |text/plain
          mime type|                            |

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/13067] obstack_free casts char* to int
  2011-08-08 22:26 [Bug libc/13067] New: obstack_free casts char* to int marc.glisse at normalesup dot org
  2011-08-08 22:28 ` [Bug libc/13067] " marc.glisse at normalesup dot org
@ 2011-09-11 17:05 ` drepper.fsp at gmail dot com
  2014-06-27 12:41 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: drepper.fsp at gmail dot com @ 2011-09-11 17:05 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=13067

Ulrich Drepper <drepper.fsp at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Ulrich Drepper <drepper.fsp at gmail dot com> 2011-09-11 17:04:53 UTC ---
I applied a different change.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug libc/13067] obstack_free casts char* to int
  2011-08-08 22:26 [Bug libc/13067] New: obstack_free casts char* to int marc.glisse at normalesup dot org
  2011-08-08 22:28 ` [Bug libc/13067] " marc.glisse at normalesup dot org
  2011-09-11 17:05 ` drepper.fsp at gmail dot com
@ 2014-06-27 12:41 ` fweimer at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: fweimer at redhat dot com @ 2014-06-27 12:41 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=13067

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-27 12:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-08 22:26 [Bug libc/13067] New: obstack_free casts char* to int marc.glisse at normalesup dot org
2011-08-08 22:28 ` [Bug libc/13067] " marc.glisse at normalesup dot org
2011-09-11 17:05 ` drepper.fsp at gmail dot com
2014-06-27 12:41 ` fweimer at redhat dot com

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).