Bug 802282

Summary: 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.
Product: Red Hat Enterprise Linux 5 Reporter: zuogang
Component: gmpAssignee: Frantisek Kluknavsky <fkluknav>
Status: CLOSED NEXTRELEASE QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.8   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-11 15:31:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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/