View Issue Details

IDProjectCategoryView StatusLast Update
0021357FPCDocumentationpublic2014-03-06 10:22
ReporterGraeme Geldenhuys Assigned ToMichael Van Canneyt  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Platformx86_64OSUbuntu Linux 
Product Version2.7.1 
Fixed in Version3.0.0 
Summary0021357: patch to fix AV's in fpdoc's linear writers
DescriptionAttached is a patch to fix AV errors in the Linear output writers of fpdoc. A property of an object was referenced, but without checking if the object actually exists.
TagsNo tags attached.
Fixed in Revision20409
FPCOldBugId
FPCTarget
Attached Files

Activities

2012-02-23 13:03

 

dwlinear.pp.patch (461 bytes)   
diff --git a/utils/fpdoc/dwlinear.pp b/utils/fpdoc/dwlinear.pp
index 23efdd5..85d96fa 100644
--- a/utils/fpdoc/dwlinear.pp
+++ b/utils/fpdoc/dwlinear.pp
@@ -893,7 +893,8 @@ begin
         Writeln(Format('%s : ',[SDocVersion]));
         WriteDescr(TypeDecl, DocNode.Version);
         end;
-      ConvertNotes(TypeDecl,DocNode.Notes);
+      if Assigned(DocNode) then
+        ConvertNotes(TypeDecl,DocNode.Notes);
       DescrEndParagraph;
       end;
   end;
dwlinear.pp.patch (461 bytes)   

Marco van de Voort

2012-02-23 13:15

manager   ~0057025

Committed, added a check for docnode.notes too

Issue History

Date Modified Username Field Change
2012-02-23 13:03 Graeme Geldenhuys New Issue
2012-02-23 13:03 Graeme Geldenhuys Status new => assigned
2012-02-23 13:03 Graeme Geldenhuys Assigned To => Michael Van Canneyt
2012-02-23 13:03 Graeme Geldenhuys File Added: dwlinear.pp.patch
2012-02-23 13:15 Marco van de Voort Fixed in Revision => 20409
2012-02-23 13:15 Marco van de Voort Status assigned => resolved
2012-02-23 13:15 Marco van de Voort Fixed in Version => 2.7.1
2012-02-23 13:15 Marco van de Voort Resolution open => fixed
2012-02-23 13:15 Marco van de Voort Note Added: 0057025
2014-03-06 10:22 Michael Van Canneyt Status resolved => closed