Skip to content

scp: Fix ascii_isdigit build failure - #475

Merged
mkj merged 7 commits into
mainfrom
pr/fix-scp-ctype
Jul 22, 2026
Merged

scp: Fix ascii_isdigit build failure#475
mkj merged 7 commits into
mainfrom
pr/fix-scp-ctype

Conversation

@mkj

@mkj mkj commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Move ctype replacements to dbctype.c, include it for scp.

Fixes: 7af125a ("Move ctype replacement functions to dbutil.c")

Fixes #473

The first commit fixes the problem, the others are adding CI for scp and other CI problems noticed in the process.

mkj added 2 commits July 22, 2026 20:44
Move ctype replacements to dbctype.c, include it for scp.

Fixes: 7af125a ("Move ctype replacement functions to dbutil.c")
The warning is spurious since the buffer size is checked prior to
snprintf.  The warning seems to only occur with -O2, not -Os.
No functional change.

src/scp.c:1031:56: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 2 and 4095 [-Werror=format-truncation=]
@mkj
mkj force-pushed the pr/fix-scp-ctype branch from c03aab0 to 83662e0 Compare July 22, 2026 12:44
mkj added 5 commits July 22, 2026 21:56
Some compilers treat strchr() return value as const char*
No functional change.
nondefault build would always add "DEBUG_TRACE 1", conflicting with
the explicit "DEBUG_TRACE 5"
@mkj
mkj force-pushed the pr/fix-scp-ctype branch from 83662e0 to 3e8d466 Compare July 22, 2026 14:03
@mkj
mkj merged commit 3e8d466 into main Jul 22, 2026
51 of 52 checks passed
arnout pushed a commit to buildroot/buildroot that referenced this pull request Jul 23, 2026
https://matt.ucc.asn.au/dropbear/CHANGES

Removed patch, the build error was fixed upstream by
mkj/dropbear#475

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
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.

Missed header dbutil.h in src/scp.c

1 participant