public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/aws] f43: Patched AWS-0175.
Date: Thu, 12 Nov 2026 22:58:10 GMT [thread overview]
Message-ID: <179452429025.1.7763826273597283407.rpms-aws-d04f93fe3a06@fedoraproject.org> (raw)
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.
reply other threads:[~2026-11-12 22:58 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=179452429025.1.7763826273597283407.rpms-aws-d04f93fe3a06@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