RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 573966 - glib2: integer overflow safe version of g_new
Summary: glib2: integer overflow safe version of g_new
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: glib2
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Matthias Clasen
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On:
Blocks: 589990
TreeView+ depends on / blocked
 
Reported: 2010-03-16 10:35 UTC by Tomas Hoger
Modified: 2010-11-15 13:58 UTC (History)
2 users (show)

Fixed In Version: glib2-2.22.5-2.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-15 13:58:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Tomas Hoger 2010-03-16 10:35:28 UTC
Description of problem:
Include a g_new version that has checks to protect against memory allocation integer overflows.  See upstream bug for details and the patch:

  https://bugzilla.gnome.org/show_bug.cgi?id=608196

Comment 1 RHEL Program Management 2010-03-16 10:54:25 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 4 RHEL Program Management 2010-05-11 14:22:43 UTC
Quality Engineering Management has reviewed and declined this request.  You may
appeal this decision by reopening this request.

Comment 5 Tomas Hoger 2010-05-11 14:27:56 UTC
Incorrect flag setting, it seems.

Comment 7 Vladimir Benes 2010-09-15 12:46:15 UTC
fix approved and tested upstream
patch included in the newest version: gmalloc-overflow.patch  [ OK ]

marking as SanityOnly

Comment 8 Vladimir Benes 2010-09-15 12:47:49 UTC
Could you please paste here a snip of code to verify this overflow? We can then automate the check.

thanks

Comment 9 Tomas Hoger 2010-09-15 19:04:52 UTC
Upstream commit adding overflow checks included test file.  Is it not sufficient?

  http://git.gnome.org/browse/glib/log/glib/tests/mem-overflow.c

Comment 10 releng-rhel@redhat.com 2010-11-15 13:58:20 UTC
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.


Note You need to log in before you can comment on or make changes to this bug.