public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/aws] f43: Patched AWS-0175.
@ 2026-11-12 22:58 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-11-12 22:58 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/aws
Branch : f43
Commit : d04f93fe3a069f66fda892d0a0eb5f281a5c914e
Author : Björn Persson <Bjorn@Rombobjörn.se>
Date   : 2026-11-12T23:55:02+01:00
Stats  : +59/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/aws/c/d04f93fe3a069f66fda892d0a0eb5f281a5c914e?branch=f43

Log:
Patched AWS-0175.

---
diff --git a/AWS-0175.patch b/AWS-0175.patch
new file mode 100644
index 0000000..4821ed6
--- /dev/null
+++ b/AWS-0175.patch
@@ -0,0 +1,53 @@
+--- a/src/core/aws-attachments.adb
++++ b/src/core/aws-attachments.adb
+@@ -111,7 +111,7 @@
+       else
+          A.Headers.Add
+            (Name  => AWS.Messages.Content_Disposition_Token,
+-            Value => "attachment; filename=""" & Name & '"');
++            Value => "attachment; filename=""" & Directories.Simple_Name(Name) & '"');
+ 
+          if Data.Content_Type = Null_Unbounded_String then
+             if not Has_Content_Type then
+@@ -247,7 +247,7 @@
+                "name"));
+       end if;
+ 
+-      return To_String (Result);
++      return Directories.Simple_Name(To_String (Result));
+    end Filename;
+ 
+    --------------------------
+--- a/src/core/aws-response-set.adb
++++ b/src/core/aws-response-set.adb
+@@ -476,9 +476,9 @@
+ 
+       if AWS.Headers.Exist (D.Header, Messages.Content_Disposition_Token) then
+          D.Filename := To_Unbounded_String
+-           (AWS.Headers.Values.Search
++           (Directories.Simple_Name(AWS.Headers.Values.Search
+              (AWS.Headers.Get
+-               (D.Header, Messages.Content_Disposition_Token), "filename"));
++               (D.Header, Messages.Content_Disposition_Token), "filename")));
+       end if;
+    end Parse_Header;
+ 
+--- a/src/extended/aws-pop.adb
++++ b/src/extended/aws-pop.adb
+@@ -29,6 +29,7 @@
+ 
+ pragma Ada_2012;
+ 
++with Ada.Directories;
+ with Ada.Streams.Stream_IO;
+ with Ada.Strings.Fixed;
+ with Ada.Unchecked_Deallocation;
+@@ -408,7 +409,7 @@
+                             "filename");
+          begin
+             if Filename /= "" then
+-               Attachment.Filename := To_Unbounded_String (Filename);
++               Attachment.Filename := To_Unbounded_String (Directories.Simple_Name(Filename));
+             end if;
+          end;
+ 

diff --git a/aws.spec b/aws.spec
index e7679cf..150b8f7 100644
--- a/aws.spec
+++ b/aws.spec
@@ -30,7 +30,7 @@
 Name:           aws
 Epoch:          2
 Version:        %{upstream_version}
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        The Ada Web Server
 
 License:        (GPL-3.0-or-later WITH GCC-exception-3.1 OR GPL-3.0-or-later WITH GNAT-exception) AND GPL-2.0-or-later WITH GNAT-exception
@@ -79,6 +79,8 @@ Patch:          %{name}-refine-dependencies-to-gnatcoll.patch
 # the same set of certificates again:
 # https://github.com/AdaCore/aws/issues/386
 Patch:          aws-trust-the-system-trust-store.patch
+# backported path traversal fix:
+Patch:          AWS-0175.patch
 
 BuildRequires:  gcc-gnat gprbuild make sed findutils tar
 # A fedora-gnat-project-common that contains the new GPRinstall macro.
@@ -440,6 +442,9 @@ sed --regexp-extended --in-place \
 ###############
 
 %changelog
+* Thu Nov 12 2026 Björn Persson <Bjorn@Rombobjörn.se> - 2:25.1.0-4
+- Patched AWS-0175.
+
 * Sun Aug 10 2025 Björn Persson <Bjorn@Rombobjörn.se> - 2:25.1.0-3
 - Rebuilt because the ALI of System.OS_Constants changed.
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-12 22:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 22:58 [rpms/aws] f43: Patched AWS-0175 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox