bugGNU Octave - Bugs: bug #43385, Fix using uninitialized variable...

 
 

bug #43385: Fix using uninitialized variable (lo_specfun.cc)

Submitted by:  PrasannaKumar Muralidharan <prasannatsm>
Submitted on:  Wed 08 Oct 2014 05:33:35 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Wont FixAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 11 Oct 2014 04:35:17 AM UTC, comment #3:

As 'retval' is passed by reference the analyser was not able to determine whether it is input or output variable.

There is no use of this patch. Sorry for the noise.

PrasannaKumar Muralidharan <prasannatsm>
Thu 09 Oct 2014 09:19:16 PM UTC, comment #2:

Since retval is declared float in your patch, you should be assigning octave_Float_NaN instead of octave_NaN.

But I'm not sure this patch is really needed. The third argument to xsgammainc is supposed to be an output variable that is always set on a successful call. Is that not the case? If not, is it any different from xgammainc?

John W. Eaton <jwe>
Project Administrator
Thu 09 Oct 2014 12:30:51 PM UTC, comment #1:

Duplicate of #43383

Ben Abbott <bpabbott>
Project Member
Wed 08 Oct 2014 05:33:35 PM UTC, original submission:

Attached patch fixes usage of uninitialised variable.

PrasannaKumar Muralidharan <prasannatsm>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by prasannatsm (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 project members can vote.

     

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

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 21 Oct 2014 10:40:36 PM UTCrik5StatusNone=>Wont Fix
      Open/ClosedOpen=>Closed
    Thu 09 Oct 2014 05:32:09 PM UTCbpabbottStatusDuplicate=>None
      Open/ClosedClosed=>Open
      SummaryFix using uninitialised variable=>Fix using uninitialized variable (lo_specfun.cc)
    Thu 09 Oct 2014 12:30:51 PM UTCbpabbottStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Wed 08 Oct 2014 05:33:35 PM UTCprasannatsmAttached File-=>Added fix_uninitialised_memory_access_lo-specfun_cc.diff, #32244

    Back to the top


    Powered by Savane 3.1-cleanup1