Skip to content

reject overlong directory prefixes in get_tmpname() - #50

Open
Eusgor wants to merge 1 commit into
LINBIT:masterfrom
Eusgor:fix-tmpname-overlong-directory
Open

Eusgor wants to merge 1 commit into
LINBIT:masterfrom
Eusgor:fix-tmpname-overlong-directory

Conversation

@Eusgor

@Eusgor Eusgor commented Sep 25, 2026

Copy link
Copy Markdown

strlcpy() was given the source length as its destination size, so a path longer than MAXPATHLEN overflowed the temporary-name buffer.

strlcpy() was given the source length as its destination size, so a
path longer than MAXPATHLEN overflowed the temporary-name buffer.

Signed-off-by: Evgeniy Gorbanyov <esgor@altlinux.org>
bes-internal added a commit to bes-internal/gentoo-overlay-bes that referenced this pull request Sep 25, 2026
Adds LINBIT/csync2#50 as a separate patch file; README notes it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

1 participant