Skip to content

Libcperciva import - #421

Open
gperciva wants to merge 12 commits into
masterfrom
libcperciva-import
Open

Libcperciva import#421
gperciva wants to merge 12 commits into
masterfrom
libcperciva-import

Conversation

@gperciva

Copy link
Copy Markdown
Member

No description provided.

- crypto_aesctr_shared.c: add <stdint.h> for uint64_t & uint8_t.
  We never compile this file by itself so arguably this isn't necessary,
  but it's useful to allow static analyzers to parse the file.

- humansize.c: add <stdlib.h> for abort()
Reported by:	ChronoNova
Bug bounty:	$10 ("harmless")
Normally we wouldn't do this in a separate commit, but we want to keep
the following commit as adding-parentheses-only.
Reported by:	Claude Sonnet 4.6; also used a python script it wrote to
		find potential missing parentheses
I missed these earlier because they're in ARM test code that isn't
compiled on x86.

Reported by:	clang 19 scan-build (on a raspberry pi)
- for cpusupport/Build/cpusupport-ARM-*.c: we deliberately want
  these files to fail to compile if the compiler doesn't support
  ARM.
- for everything else: these #includes are already inside #ifdef
  CPUSUPPORT_ARM_AES, so we gain nothing from having another
  #ifdef.

This now matches the way we handle #includes for x86 intrinsics.

Suggested by:	Claude Sonnet 5
Bug bounty:	$10 ("harmless")
This problem could not have caused an incomplete password to be read; it
would only have failed to report a rare read error occurring after
fgets() had already succeeded.

Reported by:	ChronoNova
Bug bounty:	$10 ("harmless")
Note that warnp (and warn/warnx) do not call into warnp_setprogname so
no problem arises from using warnp within warnp.c.

Reported by:	Claude Opus 4.6
Bug Bounty value:	$10 ("harmless bug")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant