View Issue Details

IDProjectCategoryView StatusLast Update
0033544FPCFCLpublic2018-04-14 19:27
ReporterengkinAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionProduct Build 
Target Version3.2.0Fixed in Version3.1.1 
Summary0033544: [Patch] URIParser.ParseURI - Result is not intialized properly
DescriptionNot all record fields are assigned in the result of function ParseURI. The attached patch includes a possible solution as suggested by Thaddy.
Additional Informationhttp://forum.lazarus.freepascal.org/index.php/topic,40653.msg281071.html#msg281071
TagsNo tags attached.
Fixed in Revision38770
FPCOldBugId
FPCTarget
Attached Files
  • params.patch (337 bytes)
    Index: uriparser.pp
    ===================================================================
    --- uriparser.pp	(revision 38658)
    +++ uriparser.pp	(working copy)
    @@ -172,6 +172,7 @@
       i,j: Integer;
       PortValid: Boolean;
     begin
    +  Result := Default(TURI);
       Result.Protocol := LowerCase(DefaultProtocol);
       Result.Port := DefaultPort;
     
    
    params.patch (337 bytes)

Activities

engkin

2018-04-01 18:23

reporter  

params.patch (337 bytes)
Index: uriparser.pp
===================================================================
--- uriparser.pp	(revision 38658)
+++ uriparser.pp	(working copy)
@@ -172,6 +172,7 @@
   i,j: Integer;
   PortValid: Boolean;
 begin
+  Result := Default(TURI);
   Result.Protocol := LowerCase(DefaultProtocol);
   Result.Port := DefaultPort;
 
params.patch (337 bytes)

Michael Van Canneyt

2018-04-14 14:17

administrator   ~0107784

Fixed, thanks for the patch!

engkin

2018-04-14 19:27

reporter   ~0107789

Thank you!

Issue History

Date Modified Username Field Change
2018-04-01 18:23 engkin New Issue
2018-04-01 18:23 engkin File Added: params.patch
2018-04-01 20:35 Michael Van Canneyt Assigned To => Michael Van Canneyt
2018-04-01 20:35 Michael Van Canneyt Status new => assigned
2018-04-14 14:17 Michael Van Canneyt Fixed in Revision => 38770
2018-04-14 14:17 Michael Van Canneyt Note Added: 0107784
2018-04-14 14:17 Michael Van Canneyt Status assigned => resolved
2018-04-14 14:17 Michael Van Canneyt Fixed in Version => 3.1.1
2018-04-14 14:17 Michael Van Canneyt Resolution open => fixed
2018-04-14 14:17 Michael Van Canneyt Target Version => 3.2.0
2018-04-14 19:27 engkin Note Added: 0107789
2018-04-14 19:27 engkin Status resolved => closed