Bug 19701

Summary: popt floating point broken
Product: [Retired] Red Hat Linux Reporter: Neal D. Becker <nbecker>
Component: poptAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-10-24 17:54:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Neal D. Becker 2000-10-24 17:54:53 UTC
popt-1.6 has severely broken floating point handling.  It doesn't even pass
it's own self test!
Why was it released like that?

Here's the patch:

Index: popt.c
===================================================================
RCS file: /cvs/devel/popt/popt.c,v
retrieving revision 1.66
diff -c -r1.66 popt.c
*** popt.c	2000/09/11 17:09:32	1.66
--- popt.c	2000/10/24 17:50:58
***************
*** 716,722 ****
  
  		case POPT_ARG_FLOAT:
  		case POPT_ARG_DOUBLE:
! 		{   long aDouble;
  		    char *end;
  
  		    aDouble = strtod(con->os->nextArg, &end);
--- 716,722 ----
  
  		case POPT_ARG_FLOAT:
  		case POPT_ARG_DOUBLE:
! 		{   double aDouble;
  		    char *end;
  
  		    aDouble = strtod(con->os->nextArg, &end);

Comment 1 Jeff Johnson 2000-12-30 19:09:57 UTC
Patch added in rpm CVS, should be in popt-1.6.[12] when released.