Bug 802282 - gmp-4.1.4-10.el5, this version use TMP_ALLOC api to replace head malloc, when the numbers is verlong (exceeds 10M which is default stack size), coredumped.
Summary: gmp-4.1.4-10.el5, this version use TMP_ALLOC api to replace head malloc, when...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gmp
Version: 5.8
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Frantisek Kluknavsky
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-12 09:19 UTC by zuogang
Modified: 2013-03-11 15:31 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-11 15:31:06 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description zuogang 2012-03-12 09:19:11 UTC
Description of problem:

gmp-4.1.4-10.el5, this version use TMP_ALLOC api to replace head malloc, when the numbers is verlong (exceeds 10M which is default stack size), coredumped.

such as:
mpz/set_str.c: line 110 ~ 112

  TMP_MARK (marker);
  str_size = strlen (str - 1);
  s = begs = (char *) TMP_ALLOC (str_size + 1);

  /* Remove spaces from the string and convert the result from ASCII to a
     byte array.  */

Comment 1 Frantisek Kluknavsky 2013-03-11 15:31:06 UTC
I am sorry, but it is now too late in the RHEL-5 release cycle.
RHEL-5.10 (the next RHEL-5 minor release) is going to be the first
production phase 2 [1] release of RHEL-5. Since phase 2 we'll be
addressing only security and critical issues.
This issue is fixed in newer versions of GMP therefore I am closing the bug as
NEXTRELEASE.

[1] https://access.redhat.com/support/policy/updates/errata/


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