public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/aws] f45: Patched AWS-0175.
Date: Thu, 12 Nov 2026 16:29:02 GMT	[thread overview]
Message-ID: <179450094262.1.5854806767397545592.rpms-aws-d10157d75883@fedoraproject.org> (raw)

A new commit has been pushed.

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

Log:
Patched AWS-0175.

---
diff --git a/AWS-0175.patch b/AWS-0175.patch
new file mode 100644
index 0000000..b94fb86
--- /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
+@@ -27,6 +27,7 @@
+ --  covered by the  GNU Public License.                                     --
+ ------------------------------------------------------------------------------
+ 
++with Ada.Directories;
+ with Ada.Streams.Stream_IO;
+ with Ada.Strings.Fixed;
+ with Ada.Unchecked_Deallocation;
+@@ -405,7 +406,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 c394032..daac107 100644
--- a/aws.spec
+++ b/aws.spec
@@ -30,7 +30,7 @@
 Name:           aws
 Epoch:          2
 Version:        %{upstream_version}
-Release:        5%{?dist}
+Release:        6%{?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
@@ -74,6 +74,8 @@ Patch:          %{name}-recommend-mailcap-for-mime-types.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
 BuildRequires:  fedora-gnat-project-common
@@ -442,6 +444,9 @@ sed --regexp-extended --in-place \
 ###############
 
 %changelog
+* Thu Nov 12 2026 Björn Persson <Bjorn@Rombobjörn.se> - 2:26.0.0-6
+- Patched AWS-0175.
+
 * Wed Jul 15 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2:26.0.0-5
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

                 reply	other threads:[~2026-11-12 16:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179450094262.1.5854806767397545592.rpms-aws-d10157d75883@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox