bugGNUstep - Bugs: bug #21301, Uninitialized variable in...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #21301: Uninitialized variable in NSDecimalMultiplyByPowerOf10

Submitted by:  Mark Tracy <tracy454>
Submitted on:  Tue 09 Oct 2007 05:57:54 AM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Fred Kiefer <FredKiefer>
Open/Closed: Closed

Tue 09 Oct 2007 10:46:03 PM UTC, comment #1:

I moved the code, which gives a result quite similar to your patch.

Fred Kiefer <FredKiefer>
Project MemberIn charge of this item.
Tue 09 Oct 2007 05:57:54 AM UTC, original submission:

In NSDecimal.m NSDecimalMultiplyByPowerOf10 the result is tested before it is assigned. Testing the input will fix it:

- int p = result->exponent + power;
+ int p = n->exponent + power;

Mark Tracy <tracy454>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by FredKiefer (Posted a comment)
  • -unavailable- added by tracy454 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 29 Nov 2008 01:49:15 PM UTCFredKieferOpen/ClosedIn Test=>Closed
    Tue 09 Oct 2007 10:46:03 PM UTCFredKieferCategoryNone=>Base/Foundation
      Item GroupNone=>Bug
      StatusNone=>Fixed
      Assigned toNone=>FredKiefer
      Open/ClosedOpen=>In Test

    Back to the top


    Powered by Savane 3.1-cleanup1