Skip to content

[2.4.x] mod_autoindex updates from trunk - #682

Open
notroj wants to merge 5 commits into
apache:2.4.xfrom
notroj:2.4.x-autoindex
Open

notroj wants to merge 5 commits into
apache:2.4.xfrom
notroj:2.4.x-autoindex

Conversation

@notroj

@notroj notroj commented Jul 6, 2026 •

Copy link
Copy Markdown
Collaborator

Merges r1922994, r1931451, r1935002, r1939181 from trunk

@notroj notroj changed the title 2.4.x autoindex [2.4.x] mod_autoindex updates from trunk Jul 6, 2026
@notroj
notroj force-pushed the 2.4.x-autoindex branch from 0be9fca to 048003d Compare July 6, 2026 11:37

@covener covener left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

something wonky in 6ab1946

Comment thread modules/generators/mod_autoindex.c Resolved
@arturobernalg

Copy link
Copy Markdown
Member

I tested this against a real 2.4.x httpd. The NameWidth=0 crash and the terminate_description() over-read are both reproducible without the backport and fixed by it. The dsortf() change also looks correct, with no differences observed in directory sorting.

I agree with Eric that the charset change should be fixed in trunk first. Besides the formatting issues, the meta tag is only emitted for XHTML, an empty Charset= produces an empty charset, Type= is ignored when generating the meta tag, and the charset value is not escaped.

Could we leave that commit out of this backport for now? The other three changes look good.

The existing test_generators_002_01 also passes without the over-read fix, so strengthening that assertion and adding a regression test for NameWidth=0 would be useful.

notroj and others added 5 commits November 22, 2026 21:13
  is transitive to avoid undefined behaviour, per:
  https://www.qualys.com/2024/01/30/qsort.txt

Submitted by: Kuan-Wei Chiu <visitorckw gmail.com>
Github: closes apache#500

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1922994 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit b5d2f5e)
bz #69930

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1931451 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit 6ab1946)
  NameWidth values less than 5, including zero.

Submitted by: metsw24-max <metsw24 gmail.com>
GitHub: closes apache#617

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1935002 13f79535-47bb-0310-9956-ffa450edef68
(cherry picked from commit 83091c3)
Stop reading (and writing) one byte past the end of a file
description when it ends inside an unterminated "&" entity or "<"
tag, as a ScanHTMLTitles title can.

* modules/generators/mod_autoindex.c (terminate_description): Check
  for the terminating NUL before advancing past it when scanning an
  unterminated "<" tag or "&" entity, and break out of the loop at
  end of string rather than continuing past it.

Submitted by: arshiya tabasum <arshi bugqore.com>
GitHub: closes apache#812

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1939181 13f79535-47bb-0310-9956-ffa450edef68

(cherry picked from commit 54cc53e)
fix style, add test and changes-entry

(cherry picked from commit eb8d3c8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants