View Issue Details

IDProjectCategoryView StatusLast Update
0038449LazarusDebuggerpublic2021-02-08 21:47
ReporterChristo Crause Assigned ToMartin Friebe  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product Version2.1 (SVN) 
Fixed in Version2.2 
Summary0038449: FpDebugger referencing SymbolArr64 in 32 bit dwarf target
DescriptionIncorrect uninitialized pointer referenced, please see patch for details.
TagsNo tags attached.
Fixed in Revision64501
LazTarget2.2
Widgetset
Attached Files

Activities

Christo Crause

2021-02-07 20:02

reporter  

SymbolArr32-fix.patch (565 bytes)   
diff --git a/components/fpdebug/fpimgreaderelf.pas b/components/fpdebug/fpimgreaderelf.pas
index 398f48263f..2bd4b01789 100644
--- a/components/fpdebug/fpimgreaderelf.pas
+++ b/components/fpdebug/fpimgreaderelf.pas
@@ -438,7 +438,7 @@ begin
         begin
           if SymbolArr32^[i].st_name<>0 then
             begin
-            SectIdx := SymbolArr64^[i].st_shndx;
+            SectIdx := SymbolArr32^[i].st_shndx;
             if (SectIdx < 0) or (SectIdx >= fElfFile.seccount) then
               continue;
             Sect := @fElfFile.sections[SectIdx];
SymbolArr32-fix.patch (565 bytes)   

Martin Friebe

2021-02-08 03:25

manager   ~0128817

Thanks, applied

Christo Crause

2021-02-08 21:47

reporter   ~0128828

Thanks!

Issue History

Date Modified Username Field Change
2021-02-07 20:02 Christo Crause New Issue
2021-02-07 20:02 Christo Crause Status new => assigned
2021-02-07 20:02 Christo Crause Assigned To => Martin Friebe
2021-02-07 20:02 Christo Crause File Added: SymbolArr32-fix.patch
2021-02-08 03:25 Martin Friebe Status assigned => resolved
2021-02-08 03:25 Martin Friebe Resolution open => fixed
2021-02-08 03:25 Martin Friebe Fixed in Version => 2.2
2021-02-08 03:25 Martin Friebe Fixed in Revision => 64501
2021-02-08 03:25 Martin Friebe LazTarget => 2.2
2021-02-08 03:25 Martin Friebe Note Added: 0128817
2021-02-08 21:47 Christo Crause Status resolved => closed
2021-02-08 21:47 Christo Crause Note Added: 0128828