Skip to content

v4.2.2

Latest

Choose a tag to compare

@paolostivanin paolostivanin released this 24 Sep 08:14
2ffa628

Hardening and bug-fix release. No API or ABI changes.

Fixes and hardening

  • Reject negative timestamps in get_totp_at, get_steam_totp_at and get_yaotp_at (INVALID_COUNTER)
  • validate_totp_in_window: overflow-checked window arithmetic, explicit INT_MIN rejection
  • otpauth/yaotp URIs: reject blank secrets and truncated percent-escapes, an empty label issuer no longer shadows &issuer=, replaced secrets are securely zeroed, track_id/uid cap enforced in _build
  • HMAC backends: NULL-handle guards; fixed an OpenSSL MAC context leak on re-key
  • HOTP counter encoded as fixed 8-byte big-endian
  • CMake/pkg-config: backend private libs propagated for static consumers; -O3 only in Release builds

Tests, docs and CI

  • New fuzzers (fuzz_base32_encode, fuzz_yaotp_uri) and an allocation-failure test suite
  • README refreshed: CMake/pkg-config usage, tests, fuzzing, Steam codes
  • CircleCI migrated to config 2.1; i386 tests retried to absorb Criterion sandbox flake

Verification

SHA256: 52baa968de23be3d54465f214ba2733f848702b211711ba625db2535e14433b7

gpg --verify v4.2.2.tar.gz.asc v4.2.2.tar.gz
echo "52baa968de23be3d54465f214ba2733f848702b211711ba625db2535e14433b7  v4.2.2.tar.gz" | sha256sum -c

Full changelog: v4.2.1...v4.2.2