bugGNU GRUB - Bugs: bug #33425, resource/memory leaks in...

 
 

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

bug #33425: resource/memory leaks in reed_solomon.c

Submitted by:  David Volgyes <dvolgyes>
Submitted on:  Sun 29 May 2011 08:43:56 AM UTC  
 
Category: NoneSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Bazaar - trunkReproducibility: Every Time
Planned Release: None

Thu 23 Jun 2011 07:04:16 PM UTC, comment #1:

Fixed even though this code is never used without -DSTANSALONE except for testing and in standalone mode the memory is reused immediately after RS is finished

Vladimir Serbinenko <phcoder>
Project Administrator
Sun 29 May 2011 08:43:56 AM UTC, original submission:

There are several leaks in reed_solomon.c
(Found by cppcheck 1.47)

A patch is submitted for this bug (line#525) :
[grub-1.99~rc2/grub-core/lib/reed_solomon.c:525]: (error) Resource leak: in

These are leaks, but I do not know the code deeply enough to make a patch for these:

[grub-1.99~rc2/grub-core/lib/reed_solomon.c:284]: (error) Memory leak: sigma
[grub-1.99~rc2/grub-core/lib/reed_solomon.c:284]: (error) Memory leak: errpot
[grub-1.99~rc2/grub-core/lib/reed_solomon.c:284]: (error) Memory leak: errpos
[grub-1.99~rc2/grub-core/lib/reed_solomon.c:284]: (error) Memory leak: sy
[grub-1.99~rc2/grub-core/lib/reed_solomon.c:284]: (error) Memory leak: eq

David Volgyes <dvolgyes>

 

Attached Files
file #23464:  reed_solomon525.patch added by dvolgyes (373B - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by dvolgyes (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 23 Jun 2011 07:04:16 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 29 May 2011 08:43:56 AM UTCdvolgyesAttached File-=>Added reed_solomon525.patch, #23464

    Back to the top


    Powered by Savane 3.1-cleanup1