Skip to content

reject invalid NameWidth values to prevent unsafe memcpy size#617

Closed
metsw24-max wants to merge 1 commit into
apache:trunkfrom
metsw24-max:mod_autoindex-namewidth-validation
Closed

reject invalid NameWidth values to prevent unsafe memcpy size#617
metsw24-max wants to merge 1 commit into
apache:trunkfrom
metsw24-max:mod_autoindex-namewidth-validation

Conversation

@metsw24-max

Copy link
Copy Markdown

This change fixes a potential memory safety issue in mod_autoindex caused by insufficient validation of the NameWidth directive.

Previously values less than 5 were not properly rejected due to a conditional check that allowed 0 to bypass validation

@metsw24-max

Copy link
Copy Markdown
Author

@notroj any updates?

@notroj

notroj commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator

@metsw24-max thanks for the PRs!

notroj added a commit to notroj/httpd that referenced this pull request Jul 6, 2026
  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)
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.

2 participants