instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
wolfSSL__wolfBoot__651
wolfSSL/wolfBoot
651
defect
0c7fa9d4e46bab6300e8d491cbb7903f0ca95e68
dd226cad0c728ab891494efa41c42a8b7a45e74b
Support WOLFCRYPT_TZ and PKCS11 on nRF5340
Adds a new config `nrf5340-wolfcrypt-tz.config` which is the same as `nrf5340-tz.config` but enables `WOLFCRYPT_TZ` and `WOLFCRYPT_TZ_PKCS11`. Uses the app core's CryptoCell subsystem for RNG.
diff --git a/.github/workflows/test-configs.yml b/.github/workflows/test-configs.yml index dbc46f391f..1ce825fc6d 100644 --- a/.github/workflows/test-configs.yml +++ b/.github/workflows/test-configs.yml @@ -145,6 +145,12 @@ jobs: arch: arm config-file: ./config/examples/nrf5340-tz.config + nrf5340_app_...
2
2
0
[{"id": "G0", "claim": "The hardcoded RNG FIFO/EHR data depth 6 in hal_trng_get_entropy should be put into nrf5340.h as a named define.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "hal_trng_fini unconditionally disables the whole CryptoCell en...
null
wolfSSL__wolfBoot__677
wolfSSL/wolfBoot
677
defect
2c67f99507f5b2428a8d3648e75ead8a60677d12
5e963dc87a19039267982375cafc063208fe8300
PolarFire SoC QSPI support and ELF parser hardening
### QSPI Flash Support Add full QSPI flash support for PolarFire SoC (MPFS250T), including read, write, and erase operations for both QSPI controllers: - **MSS QSPI** (0x21000000) — for external flash on MSS QSPI pins - **SC QSPI** (0x37020100) — for fabric-connected flash via the System Controller Both cont...
diff --git a/arch.mk b/arch.mk index 7c1c04cc20..04ec64f24b 100644 --- a/arch.mk +++ b/arch.mk @@ -576,10 +576,19 @@ endif ifeq ($(ARCH),RISCV64) CROSS_COMPILE?=riscv64-unknown-elf- CFLAGS+=-DMMU -DWOLFBOOT_DUALBOOT - CFLAGS+=-DWOLFBOOT_UPDATE_DISK -DMAX_DISKS=1 - UPDATE_OBJS:=src/update_disk.o - OBJS += src/...
20
15
6
[{"id": "G0", "claim": "The new QSPI helpers and the System Controller mailbox functions should be module-internal (declared static) instead of exposed with public linkage in mpfs250.c/mpfs250.h.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "qspi_init()...
null
wolfSSL__wolfBoot__678
wolfSSL/wolfBoot
678
defect
39085635c6f47e4cf639a9ba01ffdd1bff003294
3eae2f3965f889b95a92dff2bfe039497e8f2a4b
Versal SDCard support
- **Versal SD card boot support** with MBR parsing, SDHCI translation for Arasan, and polling-mode operation. - **Disk boot payload loading fix** to load firmware directly at `WOLFBOOT_LOAD_ADDRESS` (no post‑load memmove). - **AArch64 startup/debug improvements** including RVBAR skip on Versal and optional `DEBUG_HAR...
diff --git a/arch.mk b/arch.mk index fb34653813..3d68736b26 100644 --- a/arch.mk +++ b/arch.mk @@ -87,6 +87,12 @@ ifeq ($(ARCH),AARCH64) CFLAGS+=-DWOLFBOOT_DUALBOOT # Support detection and skip of U-Boot legacy header CFLAGS+=-DWOLFBOOT_UBOOT_LEGACY + # PLM owns RVBAR on Versal in JTAG boot; skip RVBA...
17
12
6
[{"id": "G0", "claim": "The sed expression in get_partition_offset() uses \\s*, which POSIX sed does not support in basic regex, so extracting the partition start sector will typically fail and can break later arithmetic expansion under set -e.", "category": "correctness", "verdict": "supported", "priority": "P1", "sco...
null
wolfSSL__wolfBoot__682
wolfSSL/wolfBoot
682
defect
5b43fcc49a825a48a58dce910be25b2abd0e096a
47ad6c21ef14c091ad2fd3a8961d6e9108b867bb
Updated benchmark scripts to run on rpi + stm32h563
| Name | Configuration | Bootloader size | Stack size | Image header size | Application size | Boot time | |------|---------------|-----------------|------------|-------------------|------------------|-----------| | SHA2 only | SIGN=NONE | 10600 | 1216 | 1024 | 103096 | 55.662 ms | | SHA384 only | SIGN=NONE HASH=SHA...
diff --git a/config/examples/stm32h5-no-tz.config b/config/examples/stm32h5-no-tz.config new file mode 100644 index 0000000000..6629d80b48 --- /dev/null +++ b/config/examples/stm32h5-no-tz.config @@ -0,0 +1,34 @@ +ARCH?=ARM +TZEN?=0 +TARGET?=stm32h5 +SIGN?=ECC256 +HASH?=SHA256 +DEBUG?=0 +VTOR?=1 +CORTEX_M0?=0 +CORTEX_M...
10
5
1
[{"id": "G0", "claim": "The `(void)stored_secondary_signature_size;` line in src/image.c needs 4 more spaces of indentation.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The filler_data initializer `{ 0x01, 0x02, 0x03 }` looks unnecessary and zero-init ...
null
wolfSSL__wolfBoot__683
wolfSSL/wolfBoot
683
defect
5b43fcc49a825a48a58dce910be25b2abd0e096a
a2d630fc6ea86e690299d5f053e62ec4b928f9df
Vorago demo: Test-app support for wolfCrypt test/bench
Fix for tools/scripts/va416x0/build_test.sh portability (MacOS) Added option to support wolfCrypt test/benchmark in test-app Add some checking if partition size is too large
diff --git a/Makefile b/Makefile index 7681c0f49a..9afe7ae4c2 100644 --- a/Makefile +++ b/Makefile @@ -202,6 +202,7 @@ endif # Environment variables for sign tool SIGN_ENV=IMAGE_HEADER_SIZE=$(IMAGE_HEADER_SIZE) \ + WOLFBOOT_PARTITION_SIZE=$(WOLFBOOT_PARTITION_SIZE) \ WOLFBOOT_SECTOR_SIZE=$(WOLFBOOT_SECTOR_SIZ...
19
13
7
[{"id": "G0", "claim": "The JLinkExe-not-found error message does not account for a missing /Applications/SEGGER directory, which could be confusing; add a directory-existence check or improve the message to cover both failure modes.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "i...
null
wolfSSL__wolfBoot__691
wolfSSL/wolfBoot
691
defect
3be63df3f391539d064ef758fc097066cce2b7e8
7a5889eab6b6b84dc232ab1a8fd5cf9e0449a2c1
Fix strncasecmp bounds and alpha-only case folding
+ Added unit tests for string.c Ref: fenrir M-4 and L-3
diff --git a/src/string.c b/src/string.c index ed85f8fa03..384c9cfb9b 100644 --- a/src/string.c +++ b/src/string.c @@ -117,6 +117,11 @@ int strcmp(const char *s1, const char *s2) } #endif /* Renesas CCRX */ +static int is_alpha(int c) +{ + return ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')); +} + int strc...
9
8
4
[{"id": "G0", "claim": "In strcasecmp, the alpha-only guard uses `||`, so case folding still happens when only one side is alphabetic but the characters differ by 32 (e.g. '!' vs 'A'); use `&&` so folding requires both characters to be alphabetic.", "category": "correctness", "verdict": "supported", "priority": "P0", "...
null
wolfSSL__wolfBoot__701
wolfSSL/wolfBoot
701
defect
38e2a1f89a2fd845e9e04104a72a99edb78f624a
31232aeb5bbbef85fc08a03eb14ff09cdc26d38f
fixes for disk.c and gpt.c
various fixes for disk.c and gpt.c (see commits). unit tests added
diff --git a/include/disk.h b/include/disk.h index fb128fe6cc..e3125c0f9f 100644 --- a/include/disk.h +++ b/include/disk.h @@ -25,6 +25,9 @@ #include <stdint.h> #include "gpt.h" +/* cap DISK I/O write operation to a reasonable size */ +#define DISK_IO_MAX_SIZE 0x7FFFFFFFUL + #ifndef MAX_PARTITIONS #define MAX_PAR...
4
3
0
[{"id": "G0", "claim": "The mock disk bounds check `start + count > FAKE_DISK_SIZE` could overflow when both values are large; use a non-overflowing form such as `start > FAKE_DISK_SIZE || count > FAKE_DISK_SIZE - start`.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"i...
null
wolfSSL__wolfBoot__702
wolfSSL/wolfBoot
702
defect
38e2a1f89a2fd845e9e04104a72a99edb78f624a
372985f62609f364152b5b45e7a806c3065f91df
multiboot2 fixes + tests
add fixes for multiboot2 parsing and logic. Please note that multiboot header is trusted in the common use-case.
diff --git a/src/multiboot.c b/src/multiboot.c index f923d16479..14ccd60a27 100644 --- a/src/multiboot.c +++ b/src/multiboot.c @@ -102,11 +102,15 @@ static uint8_t* mb2_align_address_up(uint8_t *addr, int align) return (uint8_t*)((v + mask) & ~(mask)); } -static uint8_t *mb2_find_tag_by_type(uint8_t *tags, uint...
9
4
4
[{"id": "G0", "claim": "mb2_find_header() now uses memcpy() but src/multiboot.c does not include <string.h>, which can fail to compile or warn when built as its own translation unit; add the header include.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai...
null
wolfSSL__wolfBoot__707
wolfSSL/wolfBoot
707
defect
2277dfa2bf621eb3b771a2c1af2b949cb3e01db9
6f3e2a0061072b1cb7841fb1f8b0e756c52bde4f
Fix string compare functions
Fixes finding 219. - Update string compare functions to avoid false equality - Add regression test cases - Ensure `-fno-builtin` is set for the `unit-string` test to ensure we test our versions of the string functions - Add asan mode to test Makefile and CI
diff --git a/.gitignore b/.gitignore index ecdf1caff5..321868d275 100644 --- a/.gitignore +++ b/.gitignore @@ -140,6 +140,7 @@ tools/unit-tests/unit-aes128 tools/unit-tests/unit-aes256 tools/unit-tests/unit-chacha20 tools/unit-tests/unit-delta +tools/unit-tests/unit-disk tools/unit-tests/unit-enc-nvm tools/unit-te...
3
1
1
[{"id": "G0", "claim": "Add more test cases for strcasecmp/strncasecmp covering non-alphabetic characters, since the isalpha condition was removed from them.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The strncasecmp loop advances s1/s2 past a null ...
null
wolfSSL__wolfBoot__716
wolfSSL/wolfBoot
716
defect
4d2c7bb851d50644efca9f44493a2fb0af655dd3
ab48f051b483f8584c1376e09cc3d1cb4362d3bf
Fixes to delta updates, reinforced size checks, improved hardening
F/220 - Improved PSA & PKCS11 store write boundary checks F/222 - Fixed bug in bmdiff F/229 - GPT: Verify CRC32 in header F/230 - Self update improved size check F/231 - Constant time public key lookup F/235 - Fix delta wb_patch double escape corner case F/93 - RSA: validate key size buffer when decoding...
diff --git a/src/boot_x86_fsp.c b/src/boot_x86_fsp.c index 01af19d988..0a1d289f6a 100644 --- a/src/boot_x86_fsp.c +++ b/src/boot_x86_fsp.c @@ -82,6 +82,9 @@ const uint8_t __attribute__((section(".sig_wolfboot_raw"))) #define FSP_STATUS_RESET_REQUIRED_WARM 0x40000002 #define MEMORY_4GB (4ULL * 1024 * 1024 * 1024) #d...
4
3
3
[{"id": "G0", "claim": "Computing the GPT header CRC over src->hdr_size bytes of the stack struct tmp can read past the end of tmp when hdr_size exceeds sizeof(struct guid_ptable), so the CRC should be computed over a buffer of at least hdr_size bytes.", "category": "correctness", "verdict": "opposed", "priority": "P1"...
null
wolfSSL__wolfBoot__719
wolfSSL/wolfBoot
719
defect
a9106453098e0d3b7f09dfe22eed00d89eeff55a
249e078ee581c2c832ef2a4f59b8f329fd363e01
Fix potential OOB-read in delta diff
F/434 - potential out-of-bounds read while creating the patch Also includes minor unrelated fix: F/436: Added missing parenthesis around macro
diff --git a/src/delta.c b/src/delta.c index 8dc2a63688..04d5dfbcd0 100644 --- a/src/delta.c +++ b/src/delta.c @@ -302,7 +302,9 @@ int wb_diff(WB_DIFF_CTX *ctx, uint8_t *patch, uint32_t len) b_start = ctx->off_b; pa+= BLOCK_HDR_SIZE; ctx->off_b += BLOCK_HDR_SIZE; - ...
3
3
2
[{"id": "G0", "claim": "The test stores the int return of wb_diff_get_sector_size() in a uint32_t, so a negative error return would wrap and pass the unsigned assert, potentially triggering huge allocations; store it in an int (or validated size_t) and use signed asserts.", "category": "correctness", "verdict": "suppor...
null
wolfSSL__wolfBoot__721
wolfSSL/wolfBoot
721
defect
fd371d5e2662638c0e3d3ebcf9dbb28385ac34e1
8b78a314bff87c70fc175e888fe3a6ec32707fdc
Multiple fixes: buffer bound checks
83091e52 TPM: RoT comparison made Constant time F/448 1b544812 TPM NV blob functions: Limit authsz to buffer capacity F/375 73a10e56 Added bound check to get_decrypted_blob_version F/374 927b8c95 Force-zero secrets in update_disk.c F/97 ff20310c strings.c: enforce null-termination on strncpy short src, optimize str...
diff --git a/.github/workflows/test-library.yml b/.github/workflows/test-library.yml index 8bf760dee9..f2257dedc2 100644 --- a/.github/workflows/test-library.yml +++ b/.github/workflows/test-library.yml @@ -33,11 +33,6 @@ jobs: asym: [ed25519, ecc256, ecc384, ecc521, rsa2048, rsa3072, rsa4096, ed448] ...
11
9
4
[{"id": "G0", "claim": "`hal_flash_write_fail` is declared static in unit-mock-flash.c but directly assigned in unit-nvm.c, which the reviewer warns will fail to link or leave the flag ineffective, and asks to make it non-static with an extern declaration or add a setter API.", "category": "correctness", "verdict": "un...
null
wolfSSL__wolfBoot__725
wolfSSL/wolfBoot
725
defect
39323435451cbfb66b079376d91576598d6a4843
ea3e1db80870d28d4a0c17f837d635e9f0cd4f7a
Fix back-end for keyvaults, minor delta trailing escape, TPM seal/unseal size, elf digest timing
F/723 - option unlock wait condition (f94d9d2e) F/724 - store delete_object header offset (3e706be3) F/725 - store _sbrk heap bounds handling (73b5ad46) F/727 - delta trailing escape margin handling (953c9bef) F/728 - TPM seal auth size validation (7631649f) F/729 - TPM unseal auth size validation (b250d780) F/73...
diff --git a/.gitignore b/.gitignore index d03344c43c..ae120f7c65 100644 --- a/.gitignore +++ b/.gitignore @@ -158,6 +158,19 @@ tools/unit-tests/unit-string tools/unit-tests/unit-update-flash tools/unit-tests/unit-update-flash-enc tools/unit-tests/unit-update-ram +tools/unit-tests/unit-boot-x86-fsp +tools/unit-tests...
12
7
3
[{"id": "G0", "claim": "The main-loop ESC literal-emission path in wb_diff still writes two bytes without the margin guard the PR added to the trailing loop, so it can still consume the reserved BLOCK_HDR_SIZE margin; apply the same check there.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc...
null
wolfSSL__wolfBoot__727
wolfSSL/wolfBoot
727
defect
52223853c4a603f22d4f2e4e802b3d3c7381fa6b
175d2b3026b25eae0d5cb36d92b656deecd16ede
NSC veneers when TZEN=1; WOLFCRYPT_TZ_PKCS11 on the NXP MCX N
Various TrustZone improvements: - Enable NSC veneers when `TZEN=1`, not only when `WOLFCRYPT_TZ=1` - Rename NSC veneers object from `wc_secure_calls.o` to `wolfboot_tz_nsc.o`, since it's no longer just for wolfCrypt calls - Implement `hal_trng_*` for NXP MCXN - Add a new `mcxn-wolfcrypt-tz.config` with `WOLFCRYPT_T...
diff --git a/.github/workflows/test-configs.yml b/.github/workflows/test-configs.yml index 5f3ada4350..c3367da677 100644 --- a/.github/workflows/test-configs.yml +++ b/.github/workflows/test-configs.yml @@ -260,6 +260,13 @@ jobs: config-file: ./config/examples/mcxn-tz.config board-name: frdmmcxn947 + n...
7
3
1
[{"id": "G0", "claim": "hal_trng_get_entropy() aligns only the length but programs ELS DMA directly to `out` without ensuring it is 4-byte aligned, so callers passing an unaligned buffer may fault or get incorrect results; handle unaligned heads/tails via a temporary aligned word buffer or explicitly enforce alignment ...
null
wolfSSL__wolfBoot__731
wolfSSL/wolfBoot
731
defect
16dadd6bc09f39ba914e08f18ccd337d44ba81f2
a1bd17ac22b2dd1d292448d4d5cbd80f40f8a65e
wolfPKCS11 test
- move pkcs11/tz test to its own module in test-app - add m33mu two-runs test for persistent storage coverage
diff --git a/.github/workflows/trustzone-emulator-tests.yml b/.github/workflows/trustzone-emulator-tests.yml index f9acc6744e..3c1949f851 100644 --- a/.github/workflows/trustzone-emulator-tests.yml +++ b/.github/workflows/trustzone-emulator-tests.yml @@ -27,6 +27,47 @@ jobs: run: | ./test.sh + ...
10
3
3
[{"id": "G0", "claim": "Including CKA_EC_PARAMS in the private key template of C_GenerateKeyPair is non-standard and can cause key generation to fail on stricter PKCS#11 implementations; remove it from priv_tmpl and keep it in pub_tmpl.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "in...
null
wolfSSL__wolfBoot__732
wolfSSL/wolfBoot
732
defect
c52a0457a642e2e80fbd9d8abd120d2d667c9300
916d9544cbdc801150052591b3dc46f47836a41d
Fixes from static analysis
- F/1099 - Fix ARM32 AIRCR key literal (`5b0c4005`) - F/1100 - fix policy_sign digest parse checks (`20c3b866`) - F/1101 - Guard elf-parser fclose on open failure (`d1b488f0`) - F/1102 - Validate qman portal cell-index (`8041e832`) - F/1103 - remove TPM secret debug logging (`805b16e2`) - F/1104 - zero decrypted d...
diff --git a/src/boot_arm32.c b/src/boot_arm32.c index 9a999dda8f..e7d1f47319 100644 --- a/src/boot_arm32.c +++ b/src/boot_arm32.c @@ -86,7 +86,7 @@ void RAMFUNCTION do_boot(const uint32_t *app_offset) #ifdef RAM_CODE #define AIRCR *(volatile uint32_t *)(0xE000ED0C) -#define AIRCR_VKEY (0r05FA << 16) +#define AIRCR...
2
1
1
[{"id": "G0", "claim": "The unit-policy-sign target's include path order ($CFLAGS has -I../../include before -I../tpm) means include/user_settings.h will be chosen instead of the TPM tool's user_settings.h, which can change crypto/memory configuration and can break or make the unit test non-representative of the actual...
null
wolfSSL__wolfBoot__740
wolfSSL/wolfBoot
740
defect
e30ca2dc59f988b1ed5828b6c3ad2b2eb7f40444
28736559c9ece332351e94a9de9f36f0641a2d94
Fixes 20260330
F/1481 - Validate FDT string offsets (`cd7cb799`) F/1482 - Guard TPM keystore auth in `check_rot` (`9a5fbee5`) F/1480 - Reject oversized TPM ROT auth input (`1cb6c750`) F/1472 - Fix store header search bounds (`ec094fca`) F/1475 - Fix stm32h5 OTP readonly block rounding (`3a1b48b6`) F/1474 - Fix PKCS11 init state ...
diff --git a/.gitignore b/.gitignore index f1a8800c92..05d4922f20 100644 --- a/.gitignore +++ b/.gitignore @@ -171,6 +171,11 @@ tools/unit-tests/unit-store-sbrk tools/unit-tests/unit-tpm-blob tools/unit-tests/unit-update-disk tools/unit-tests/unit-policy-sign +tools/unit-tests/unit-fdt +tools/unit-tests/unit-hal-otp...
14
11
2
[{"id": "G0", "claim": "The rot_auth unit test should run its suite with CK_NORMAL instead of CK_ENV, for consistency with the other unit test executables and deterministic CI output.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new include/hal_ot...
null
wolfSSL__wolfBoot__745
wolfSSL/wolfBoot
745
defect
993b4f42f6e02a15262714d2c88a9d3a1fc2f8cf
08d39cf49ef6d34505ca4a96d1fda35ff2c5e1d2
Fixes 20260408
F/2273 - sign: scrub key buffers before free (`1c824539`) F/2274 - Scrub RSA keygen private material (`87d5a7fc`) F/2275 - Zero ECC keygen private buffers (`114140c2`) F/2276 - Zero EdDSA keygen private data (`6f40afae`) F/2277 - zero ML-DSA private key buffer (`32783034`) F/2258 - Add restricted key mask authenti...
diff --git a/docs/compile.md b/docs/compile.md index cf0d566ac0..8da2b093c5 100644 --- a/docs/compile.md +++ b/docs/compile.md @@ -193,7 +193,9 @@ To circumvent the compile-time checks on the maximum allowed stack size, use `WO Optionally, it is possible to disable the backup copy of the current running firmware upo...
40
29
13
[{"id": "G0", "claim": "The test file uses errno/EACCES and PATH_MAX without including <errno.h> and <limits.h>, which can break compilation on some platforms, so the missing headers should be added.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
wolfSSL__wolfBoot__81
wolfSSL/wolfBoot
81
defect
cfb408c6d8526ff014ca7a670c21b02c26960c8a
cd9c92caa699f6f1103f15a2c453b2675d031959
i.MX-RT1060 support
Support for NXP iMX-RT1060 - Tested with configuration provided - Tested with PKA (Sha256 acceleration via DCP): Depends on [wolfSSL PR 3373](https://github.com/wolfSSL/wolfssl/pull/3373)
diff --git a/arch.mk b/arch.mk index 1a7bc34f38..a1d656ec96 100644 --- a/arch.mk +++ b/arch.mk @@ -114,7 +114,6 @@ ifeq ($(ARCH),RISCV) ARCH_FLASH_OFFSET=0x20010000 endif - ifeq ($(TARGET),kinetis) CFLAGS+= -I$(MCUXPRESSO_DRIVERS)/drivers -I$(MCUXPRESSO_DRIVERS) -DCPU_$(MCUXPRESSO_CPU) -I$(MCUXPRESSO_CMSIS)/I...
3
3
1
[{"id": "G0", "claim": "A link or note should be added to Targets.md explaining where to download the MCUXpresso SDK, which components are required, and how to place it for the MCUXPRESSO variable.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "On...
null
wolfSSL__wolfip__102
wolfSSL/wolfip
102
defect
26dc83389bb4ed0215d19a1e5d3bdca34051363c
b582fc3831168712ecf7b07b1ece91bcbee53091
Fix loopback interface. Add new tests, remove deprecated tests.
+ minor fixes: exclude posix headers from non-posix builds, remove DEBUG defined by default in wolfip.h
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 53664aff..56ca1605 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -90,6 +90,12 @@ jobs: set -euo pipefail timeout --preserve-status 2m sudo LD_PRELOAD=$PWD/libwolfip.so ping -c 5 10.10.10.1 ...
6
6
3
[{"id": "G0", "claim": "wolfIP_loopback_poll validates ll but not buf, so calling it with a NULL buf while loopback data is pending would write through a NULL pointer in memcpy; add a NULL check for buf consistent with wolfIP_loopback_send.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope":...
null
wolfSSL__wolfip__19
wolfSSL/wolfip
19
defect
ac1a6fcb36f2c8bb98cf318739308dadcfcc8c4d
ea9a8e006a92b7bacc8d4f064fc4e2e30ee68982
Add wolfIP STM32 CubeMX Support
# Description Adds STM32 CubeMX/CubeIDE integration for wolfIP, enabling users to add the wolfIP TCP/IP stack to any STM32 project with Ethernet via the CMSIS pack workflow. ### Changes - **`IDE/STM32Cube/README.md`** — Step-by-step guide covering pack installation, CubeMX project setup (ETH + NVIC config), ma...
diff --git a/IDE/STM32Cube/README.md b/IDE/STM32Cube/README.md new file mode 100644 index 00000000..85995d85 --- /dev/null +++ b/IDE/STM32Cube/README.md @@ -0,0 +1,26 @@ +# wolfIP for STM32 Cube IDE + +The wolfIP Cube Pack can be found [here](https://www.wolfssl.com/files/ide/I-CUBE-wolfIP.pack). + +1. If you intend to...
5
4
2
[{"id": "G0", "claim": "Wrapping the entire public HTTPD API in an #ifdef makes httpd.h effectively empty unless the macro is defined, breaking existing users that include the header behind other feature flags; consider keeping the declarations unconditional or providing a compatibility alias or build-time error.", "ca...
null
wolfSSL__wolfip__21
wolfSSL/wolfip
21
defect
2fd11af1b38c0f3a898bd29f533c1671c1b3dfa1
3f3cceb6b6e0e45a42a2b2fe4a6f2f31f6d766b7
Fix remote_ip not set in UDP recvfrom
- [x] Unit test to reproduce claim from @philljj - [x] Fix `wolfIP_sock_recvfrom` - [x] Add more unit tests to check for proper arguments handling in wolfIP_sock_recvfrom()
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index b15825ee..fadd2755 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -1039,6 +1039,52 @@ START_TEST(test_udp_sendto_and_recvfrom) } END_TEST +START_TEST(test_udp_recvfrom_sets_remote_ip) +{ + struct wolfIP s; + int sd; + struct wo...
2
2
1
[{"id": "G0", "claim": "The new test asserts that wolfIP_sock_recvfrom() populates ts->remote_ip, but the PR contains no corresponding implementation change, so the test will fail and the PR will not meet its stated goal; the recvfrom/UDP receive-path fix should be included in this PR.", "category": "correctness", "ver...
null
wolfSSL__wolfip__28
wolfSSL/wolfip
28
defect
e48dc31294fdfbff030bca6722e4057c1a13f9da
9b4f592cbd55c7cd3c63713fcabe387abd37a0e1
Upgrade wolfIP CI Testing
# Description * **CI Workflows Added** * **Codespell workflow** (`.github/workflows/codespell.yml`) — automated spell checking on push/PR with a project-specific ignore list for common technical abbreviations (e.g., `inh`, `rcv`, `ser`). * **Multi-compiler workflow** (`.github/workflows/multi-compiler.yml`) — buil...
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 00000000..01bb47d0 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,26 @@ +name: Codespell + +on: + push: + branches: [ 'master', 'main', 'release/**' ] + pull_request: + branches: [ '*' ] + +...
1
1
1
[{"id": "G0", "claim": "The sanitizer workflow builds unit tests with `make unit`, which does not inherit the target-specific sanitizer flags (e.g. `asan:CFLAGS+=-fsanitize=address`), so the unit tests are built without sanitizer instrumentation, defeating the purpose of the sanitizer testing; it suggests building unit...
null
wolfSSL__wolfip__29
wolfSSL/wolfip
29
defect
d34f7e3afc39dfc9ee7c034e5028813844236611
6718f0ed1f4cfa3ff86a9c8794b4e72c3d2ef523
Multiple fixes to TCP fast retransmit + VDE port
- Fixed potential TCP TX fifo drain when full - Fixed retransmit order / TCP backpressure - Added VDE driver to connect to virtual networks for more end-to-end tests
diff --git a/Makefile b/Makefile index 4b062c37..2d7c5e74 100644 --- a/Makefile +++ b/Makefile @@ -55,12 +55,30 @@ ifeq ($(UNAME_S),Darwin) endif -TAP_SRC:=src/port/posix/tap_$(UNAME_LC).c -ifeq ($(wildcard $(TAP_SRC)),) - TAP_SRC:=src/port/posix/tap_linux.c +# Network device driver selection +# Default to TAP fo...
4
3
0
[{"id": "G0", "claim": "The static global vde_conn limits the VDE driver to a single connection per process; consider storing the VDE connection in the wolfIP_ll_dev structure's opaque data field instead.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Th...
null
wolfSSL__wolfip__36
wolfSSL/wolfip
36
defect
99055f44425a6ab91751fc9024e22db6714608a1
9591b9be6143e3a99a074675dd3b00360dff26f6
TCP: fix timestamp negotiation, RFC6298 compliance, TCP zero-window probe
Only send ACKs with TS option if negotiated. ~~Based on previous PR: #35~~ Overrides and includes PR #34 PR #35
diff --git a/README.md b/README.md index 2e1a95d9..2cc775a5 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ A single network interface can be associated with the device. | **Transport** | TCP | Connection management, reliable delivery | [RFC 793](https://datatracker.ietf.org/doc/html/rfc793), [RFC 9293](https...
5
5
4
[{"id": "G0", "claim": "tcp_send_zero_wnd_probe() sends payload[0] as the probe byte even when probe_seq is snd_una inside a queued segment, so the probe byte no longer matches the probe sequence number; compute the payload offset as snd_una - seg_seq and use that byte.", "category": "correctness", "verdict": "supporte...
null
wolfSSL__wolfip__49
wolfSSL/wolfip
49
defect
2be9958e7dc7c4e0b59c53d231c0e425c5f8b521
adbf6a387882e0712d276884a8133f8f3a315d0f
fix UDP recvfrom integer underflow leaving malformed packet stuck in …
This pull request introduces a regression test and a corresponding fix for handling malformed UDP packets where the UDP length field is less than the header size. The main goal is to ensure that such packets are properly discarded and do not block subsequent reads on the socket. The changes include adding a new unit te...
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index 46d64ca7..3e6cef36 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -16700,6 +16700,48 @@ START_TEST(test_regression_udp_inflated_udp_len) } END_TEST +START_TEST(test_regression_udp_len_below_header_discards_and_unblocks) +{ + struct w...
6
6
0
[{"id": "G0", "claim": "Populate src_addr only after validating udp->len, so that a recvfrom() failure leaves the caller's address output untouched instead of partially updated.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Return a specific negati...
null
wolfSSL__wolfip__52
wolfSSL/wolfip
52
defect
254bc9c97a2259253785604e67a8d38bbbb5ec41
93bb19bc52ead27d9845d9720b59d2e775277dfd
Fix: PSH flag must be set on last segment
In a train of packets, the last TCP segment is the one that should be marked with PSH, not the first. Found via fenrir/240
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index 9d96695c..f59c873b 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -3685,6 +3685,7 @@ START_TEST(test_sock_sendto_tcp_multiple_segments_flags) ck_assert_int_gt(tcp_sd, 0); ts = &s.tcpsockets[SOCKET_UNMARK(tcp_sd)]; ts->sock.tc...
1
1
0
[{"id": "G0", "claim": "The post-send scan walks the entire TCP tx FIFO to find the last descriptor, making wolfIP_sock_sendto() O(number of queued segments) per call; the reviewer suggests tracking the last-enqueued descriptor during fifo_push so PSH can be set directly on the last segment.", "category": "performance"...
null
wolfSSL__wolfip__56
wolfSSL/wolfip
56
defect
338ec0f9497e9235eaa02ccf9f5a1db96ecde5d9
318b50119ef4999c5ce9dfedd40201e092489fc1
Fix endianness of default DHCP offer netmask
When no netmask is offered and we are using the default 24bit netmask, ensure it's set with the right endianness. Found by fenrir/141
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index e392c8ea..7da7de88 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -4328,6 +4328,46 @@ START_TEST(test_dhcp_parse_offer_and_ack) } END_TEST +START_TEST(test_dhcp_parse_offer_defaults_mask_when_missing) +{ + struct wolfIP s; + struc...
3
1
0
[{"id": "G0", "claim": "The default netmask literal 0x00FFFFFF is a magic number whose byte ordering is easy to misread or regress; document the default byte ordering and/or make it a named define (or express it in host order and convert once) so the endianness intent is unambiguous.", "category": "maintainability", "v...
null
wolfSSL__wolfip__57
wolfSSL/wolfip
57
defect
01228b16d40f3f5ab2a6d6741232fd433851e52f
1acd0cd834dfd86131f9d46b34c20509ce1c8195
More various fixes (fixes-6)
- fix for report from fuzzers (+ regression test for it); - m-241 from f. (+ regression test for it)
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index f2b79086..fa13b912 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -5515,6 +5515,65 @@ START_TEST(test_icmp_input_echo_request_reply_sent) } END_TEST +START_TEST(test_icmp_input_echo_request_odd_len_reply_checksum) +{ + struct wolfIP ...
3
2
0
[{"id": "G0", "claim": "The new ICMP test should populate ip->ver_ihl (e.g. 0x45) and ip->proto with the ICMP protocol constant so it exercises a well-formed IPv4 header instead of depending on implementation details.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
wolfSSL__wolfip__58
wolfSSL/wolfip
58
defect
01228b16d40f3f5ab2a6d6741232fd433851e52f
75558eb6d999b7fb152248ab67e8562bb0fe0892
Mitigate ARP poisoning by preventing overwrite
When receiving unsolicited ARP traffic, wolfIP accepts neighbors addresses. This prevents overwriting/poisoning ARP tables when an attacker is trying to impersonate an existing neighbor. For latency/performance optimizations, wolfIP is currently still populating the neighbor cache based on valid ARP requests from n...
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index f2b79086..47460aaf 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -15597,7 +15597,6 @@ START_TEST(test_arp_reply_handling) { struct arp_packet arp_reply; uint32_t reply_ip = 0xC0A80003; // 192.168.0.3 uint8_t reply_mac[6] = {...
8
5
3
[{"id": "G0", "claim": "arp_pending_record's slot-selection logic effectively always picks slot 0 once the table has any non-empty entry, preventing tracking of multiple simultaneous pending ARP requests; the reviewer asks to prefer the first empty slot and otherwise scan for the truly oldest ts.", "category": "correct...
null
wolfSSL__wolfip__6
wolfSSL/wolfip
6
defect
700f7fd3eea34b857a9c937395b8654398711141
4a033dbc1ba642a5f71a47574dbda5ad1b3201bb
Port of POSIX examples to freeBSD and Darwin
- Ported to FreeBSD and MacOS - Tests added (running on the three OS now) - Removed all mentions to "linux", replaced with generic "host" in the examples - Grouped functional / unit tests in the same workflow (so unit test are also running everywhere)
diff --git a/.github/workflows/freebsd.yml b/.github/workflows/freebsd.yml new file mode 100644 index 00000000..793ea77c --- /dev/null +++ b/.github/workflows/freebsd.yml @@ -0,0 +1,34 @@ +name: FreeBSD interop tests + +on: + push: + branches: [ 'master', 'main', 'release/**' ] + pull_request: + branches: [ '*'...
4
3
1
[{"id": "G0", "claim": "The printf after pthread_join in test_wolfip_echoclient has unneeded extra indentation.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Makefile conditionals added by the pull request should be indented for readability...
null
wolfSSL__wolfip__62
wolfSSL/wolfip
62
defect
46c46d85620bf7702e8708c9319a623ab3235fac
7361ff1898c916aa71156b63c40756b74d6c094f
esp: check decrypted pad_len.
## Description Check that decrypted pad_len is reasonable. Fixes F/225. Added null-encryption + hmac auth API `wolfIP_esp_sa_new_hmac()` (mainly to facilitate testing). Cleaned up and improved auth key/enc key/icv len checks. Added esp unit tests: - test_sa_hmac_good - test_unwrap_pad_too_big
diff --git a/src/wolfesp.c b/src/wolfesp.c index 1987e6cf..e7e4c639 100644 --- a/src/wolfesp.c +++ b/src/wolfesp.c @@ -1270,11 +1270,24 @@ esp_transport_unwrap(struct wolfIP_ip_packet *ip, uint32_t * frame_len) } /* Payload is now decrypted. We can now parse - * the ESP trailer for next header and paddi...
1
1
0
[{"id": "G0", "claim": "Add a unit test that tampers the decrypted pad_len byte of a valid wrapped packet and asserts esp_transport_unwrap returns -1, since the existing ESP unwrap error-path tests do not cover it.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wolfSSL__wolfip__65
wolfSSL/wolfip
65
defect
2907005d72bd19d8f1e726b2f574a92c54a6bf75
1b21ae9d5f85c1a86af6bc8a633a114b7ce92bfc
Multiple fixes from Fenrir report
- F/324 Prevent accepting datagrams from any source after UDP connected - F/329: TCP: double check ISNs in 3WHS before stepping into state ESTABLISHED - F/330: TCP: check in-window / correct seq on received RST (enforce RFC5961 behavior for RST handling) - F/325: Rejected as false positive, test added - ...
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index 5450e736..f3067c5e 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -1659,7 +1659,7 @@ START_TEST(test_udp_recvfrom_preserves_remote_ip) int ret; ip4 local_ip = 0x0A000001U; ip4 remote_ip = 0x0A000002U; - ip4 preset_remote_i...
5
5
4
[{"id": "G0", "claim": "The SYN_RCVD ACK validation computes the expected final ACK one greater than SND.NXT (tcp_seq_inc(t->sock.tcp.seq, 1)) and the accept-handshake tests send ACK = seq + 1, so valid ACKs may be rejected or bogus ones accepted, and the tests encode an off-by-one 3WHS that masks the bug.", "category"...
null
wolfSSL__wolfip__68
wolfSSL/wolfip
68
defect
079235fe22ea1ac41a575ed5f61f20087884e7fc
fbf3222bc76a5c85e6c33c2637fc3ab80d43c7ec
Fix Coverity Findings
# Description ### Dead Code (10 fixes) - bsd_socket.c: Remove dead NULL check on pointer arithmetic result in `wolfip_calc_msghdr_len` - bsd_socket.c: Remove dead else branches in `send()`, `write()`, and `sendto()` nonblock EAGAIN paths - bsd_soc...
diff --git a/src/port/posix/bsd_socket.c b/src/port/posix/bsd_socket.c index c2798549..572c8127 100644 --- a/src/port/posix/bsd_socket.c +++ b/src/port/posix/bsd_socket.c @@ -298,10 +298,14 @@ static int wolfip_fd_alloc(int internal_fd, int nonblock) host_fcntl(pipefds[0], F_SETFL, O_NONBLOCK); host_f...
6
6
6
[{"id": "G0", "claim": "The failure cleanup in wolfip_fd_alloc calls the interposed close() (and, when host_fcntl is NULL, the interposed fcntl()) instead of a non-interposed path, which can recursively re-lock wolfIP_mutex and deadlock; use host_close for the pipe fds and resolve the real fcntl (e.g. via dlsym(RTLD_NE...
null
wolfSSL__wolfip__76
wolfSSL/wolfip
76
defect
e87df724d7a0b3462e62e3acbb82186f5cb182c8
8abbfed05d66d807f69b0662ed1abd0aae43d4d1
Fixes for DNS, TCP, ICMP
F/477: fix byteorder in DNS returned IP address F/478: Bind ICMP sockets to an IP address / interface F/479: Fix ACK processing in CLOSE_WAIT state F/480: DNS client: properly validate XID before accepting record F/481: Add comment to clarify RTT wrapping logic.
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index 7e57893e..5671d5c7 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -2092,6 +2092,7 @@ START_TEST(test_sock_bind_icmp_success) ck_assert_int_eq(wolfIP_sock_bind(&s, icmp_sd, (struct wolfIP_sockaddr *)&sin, sizeof(sin)), 0); ck_ass...
3
2
2
[{"id": "G0", "claim": "The new comment claims the coarse RTT subtraction remains correct across a single tick wrap, but the code only computes the RTT sample when last_tick >= time_sent, so if the tick counter wraps the sample would be silently skipped, contradicting the comment and losing RTT updates after wrap; do a...
null
wolfSSL__wolfip__78
wolfSSL/wolfip
78
defect
60444d869e8f451aa2dca2d3d791fa793d5f4e03
f7263c9951976520a6ec021e50b48987bbb7db88
Rfc compliance
- f6aa529: Correctly parse ACK in TCP_CLOSING (F/689) - 7f908bf: Send RST for unmatched segments (F/690) - 9366582: UDP: send ICMP port unreachable for closed UDP port (F/694) - 649cfb5: IHL > 5: discard options but correctly receive packet (F/695) - 4502d00: icmp_input: discard packets with bad checksum ...
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index 1c152d02..c386881a 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -474,6 +474,37 @@ static void fix_udp_checksums(struct wolfIP_udp_datagram *udp) fix_udp_checksum(udp, udp_len); } +static void fix_ip_checksum_with_hlen(struct wolfI...
5
4
2
[{"id": "G0", "claim": "udp_try_recv now sends ICMP Port Unreachable for any UDP datagram that doesn't match a local socket, which per RFC 1122/1812 must not be generated in response to packets sent to or sent from broadcast/multicast/0.0.0.0 addresses; gate wolfIP_send_port_unreachable() behind checks that the destina...
null
wolfSSL__wolfip__80
wolfSSL/wolfip
80
defect
930034f9cd3b7257b3da4178b43441f6142dc71e
556da5e3b0cfa5470a9234f9dc357b18c137101a
esp: improve oseq overflow handling.
## Description Improve ESP oseq overflow handling. Add unit test to check overflow. Fixes F-696.
diff --git a/src/test/unit/unit_esp.c b/src/test/unit/unit_esp.c index 05f21db6..aa393ffa 100644 --- a/src/test/unit/unit_esp.c +++ b/src/test/unit/unit_esp.c @@ -503,6 +503,53 @@ START_TEST(test_replay_old_seqs_after_jump) } END_TEST +/* The transmitted sequence number must never be allowed to overflow. */ +START_...
2
2
2
[{"id": "G0", "claim": "The overflow path leaves `replay.oseq` at 0 after rejecting the wrap, so a subsequent call increments to 1 and resumes sending, potentially reusing sequence numbers after an overflow; the author should check `oseq` before incrementing or latch an overflowed state so all future wraps fail.", "cat...
null
wolfSSL__wolfip__81
wolfSSL/wolfip
81
defect
5b34dc7068ab4485eb5c3f1c30f12e7358d9fc88
12ac0a9bc1aab5cd3e919130c814a80912261534
Fixes finding from static analyzers
F/782 - TCP data delivered in FIN_WAIT_1 and FIN_WAIT_2 (c01d51f) F/779 - ESP anti-replay window updates fixed for advanced hi_seq handling (fd082b3) F/783 - SYN-ACK advertised window no longer incorrectly scaled (00ce5fc) F/784 - Fragmented IPv4 packets dropped before upper-layer dispatch (ffb252c) F/790 - DF bit ...
diff --git a/src/port/posix/bsd_socket.c b/src/port/posix/bsd_socket.c index 7ecd5ac6..da3bde63 100644 --- a/src/port/posix/bsd_socket.c +++ b/src/port/posix/bsd_socket.c @@ -933,7 +933,7 @@ int wolfIP_sock_recvmsg(struct wolfIP *ipstack, int sockfd, struct msghdr *msg, break; (void)wolfIP_sock_po...
2
2
2
[{"id": "G0", "claim": "When peer_rwnd is 0 (peer advertised zero window in SYN-ACK), tcp_initial_cwnd returns 0 because rwnd_cap becomes 0 and there is no floor, which would prevent the connection from ever sending data; the old min_cwnd = 2*smss floor should be restored (e.g., max(result, 2*smss)).", "category": "cor...
null
wolfSSL__wolfip__83
wolfSSL/wolfip
83
defect
5dbd9cabba28475bf47cbd3be51b3392a80d245a
8f380c08817b92925f87a57fe27559d34d061d42
Fix wolfIP coverity
# Description 1. CID 1683231 — dead wscale (wolfip.c) 2. CID 1683213 — ICMP memcpy overrun (wolfip.c) 3. CID 1686341 — uninit buf (bsd_socket.c) 4. CID 1683243 — dead break sendto (bsd_socket.c) 5. CID 1683239 — dead break send (bsd_socket.c) 6. CID 1683212 — dead break write (bsd_socket.c) 7. CID...
diff --git a/src/port/posix/bsd_socket.c b/src/port/posix/bsd_socket.c index da3bde63..b0870a5f 100644 --- a/src/port/posix/bsd_socket.c +++ b/src/port/posix/bsd_socket.c @@ -899,7 +899,7 @@ int wolfIP_sock_recvmsg(struct wolfIP *ipstack, int sockfd, struct msghdr *msg, socklen_t addrlen = 0; size_t total_len...
7
7
5
[{"id": "G0", "claim": "Nonblocking sendto() now returns -1/EAGAIN even when some data was already sent; it should return the short count when sent > 0.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Nonblocking send() now returns -1/EAGAIN even aft...
null
wolfSSL__wolfip__84
wolfSSL/wolfip
84
defect
5dbd9cabba28475bf47cbd3be51b3392a80d245a
dde616d473e0656c602fe3572e8bb3d431e08250
Add DNS query timeout/retries. Add DHCP lease renewal. Fixes for TCP, ARP, ICMP.
- 79ec8a7 Do not scale incoming TCP handshake windows. F/1165 - 88646e3 Randomize client TCP initial sequence numbers. F/1170 - 494441f Preserve socket events raised during poll callbacks. F/1161 - f7e9f00 Stop ARP requests falling through to reply handling. F/1162 - f01a971 Allow TCP recvfrom in FIN-WAIT...
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index 7a05f880..0f5d4cf7 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -117,6 +117,7 @@ Suite *wolf_suite(void) #endif tcase_add_test(tc_utils, test_wolfip_ipconfig_ex_per_interface); tcase_add_test(tc_utils, test_wolfip_poll_executes...
4
4
3
[{"id": "G0", "claim": "In the ICMP recvfrom oversize path, the packet is popped from the FIFO but CB_EVENT_READABLE is not cleared when the FIFO becomes empty, leaving the socket permanently signaled as readable; mirror the normal-path behavior by clearing the flag when fifo_peek() returns NULL.", "category": "correct...
null
wolfSSL__wolfip__90
wolfSSL/wolfip
90
defect
0fdb4559c941a85b57f4ced4044944e4e1910d7c
96a8d8da84f7a888bd7e8032783cd9605420c8d1
Compliance fixes + verification paths
- cdc4a77 DHCP: escalate failed enqueues Handle failed DHCP REQUEST/DISCOVER socket enqueues explicitly and add negative retry tests. - 064ccd8 Add test case: ip_recv() ESP unwrapping Add direct ip_recv() ESP transport-mode success and unwrap-failure coverage. - 605ed50 DNS: properly handle initial se...
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index d786923a..072125c1 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -227,7 +227,7 @@ Suite *wolf_suite(void) tcase_add_test(tc_utils, test_sock_setsockopt_recvttl); tcase_add_test(tc_utils, test_sock_setsockopt_invalid_socket); ...
2
2
2
[{"id": "G0", "claim": "In dhcp_send_discover(), when wolfIP_sock_sendto() fails the retry timer is scheduled but s->dhcp_state is left unchanged, so a call from dhcp_client_init() (DHCP_OFF) makes dhcp_timer_cb() do nothing and DHCP discovery never retries; the suggested change sets s->dhcp_state to DHCP_DISCOVER_SENT...
null
wolfSSL__wolfip__91
wolfSSL/wolfip
91
defect
b9d0ac31e10fab921cada1e9182f230c2b6aa018
f98e46b34e8b3b78b63be5be648ec8639cd54526
Fixes 20260330
F/1591 - allow TCP send in close-wait (`fe53230`) F/1592 - Fix DHCP option byte order handling (`3329b84`) F/1583 - Fix PAWS timestamp wrap comparison (`055457d`) F/1584 - Fix TCP fast recovery ACK handling (`712094d`) F/1585 - Handle inbound ICMP dest-unreach for TCP (`10f4014`) F/1593 - fix ICMP writab...
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index b11b18c7..c9831d97 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -107,6 +107,7 @@ Suite *wolf_suite(void) tcase_add_test(tc_utils, test_wolfip_getdev_ex_api); tcase_add_test(tc_utils, test_wolfip_ll_frame_mtu_enforces_minimum); ...
5
5
4
[{"id": "G0", "claim": "icmp_try_deliver_tcp_error() casts the ICMP-quoted payload to structs that embed an Ethernet header under ETHERNET, mis-parsing ver_ihl/src/dst and potentially reading past the guaranteed 28 bytes, so socket matching and MTU/close handling are unreliable; it should parse the embedded headers wit...
null
wolfSSL__wolfip__93
wolfSSL/wolfip
93
defect
378227b77d0fa0bab3a199dfa1f09774b253f720
7eec3869778786cc0d78cf16969838dcd1dae924
Fixes 20260331
F/1765 - Fix unsent TCP TX payload length accounting (`c8791cb`) F/1766 - Close DHCP socket on bind failure (`f867b16`) F/1767 - Fix TCP socket demultiplexing by IP (`72c1770`) F/1768 - Reject LISTEN SYN-ACK segments (`de1c5db`) F/1769 - Deconfigure DHCP lease on expiry (`c70fb17`) F/1770 - Validate DNS RR class i...
diff --git a/src/test/unit/unit.c b/src/test/unit/unit.c index 7c8ea50c..4c0d5ca4 100644 --- a/src/test/unit/unit.c +++ b/src/test/unit/unit.c @@ -123,6 +123,7 @@ Suite *wolf_suite(void) tcase_add_test(tc_utils, test_wolfip_send_port_unreachable_non_ethernet_skips_eth_filter); tcase_add_test(tc_utils, test_tc...
9
8
7
[{"id": "G0", "claim": "When the UDP RX FIFO is full, fifo_push() fails and matched stays 0, so a datagram for a bound socket can fall through to the !matched path and trigger an ICMP port-unreachable as if the port were closed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced...
null
wolfSSL__wolfssh__114
wolfSSL/wolfssh
114
defect
b60ebf6cd7c3a69f530bc253463b57e0993a9ff7
8aae1de0fd476e0fefffa4b0bcb2e616caf3710a
Static Analysis Fixes
Ran the clang static analysis and infer and fixed most of the reported items. There were many that infer found that looked like false positives.
diff --git a/examples/client/client.c b/examples/client/client.c index aa8788ea8..640a5fce0 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -114,7 +114,7 @@ static int wsUserAuth(byte authType, void* ctx) { const char* defaultPassword = (const char*)ctx; - word32 ...
2
2
0
[{"id": "G0", "claim": "The indentation of the added WCLOSEDIR call in wolfSSH_SFTP_RecvOpenDir looks off (tabs where the surrounding code uses spaces) and should be corrected.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The indentation of th...
null
wolfSSL__wolfssh__206
wolfSSL/wolfssh
206
defect
74e42d582b8cc0b69ff0b1a833e9fdf88af16ff4
1d9592dc13f969017021adcd3105cdde80001559
Automatic Client Test
1. Add an SFTP automated test. 2. Update wolfSSH_SFTP_STAT() with clearing the error register if it is WANT_READ.
diff --git a/examples/sftpclient/sftpclient.c b/examples/sftpclient/sftpclient.c index 297014e01..153f958bf 100644 --- a/examples/sftpclient/sftpclient.c +++ b/examples/sftpclient/sftpclient.c @@ -33,9 +33,6 @@ #ifdef WOLFSSH_SFTP -int doCmds(func_args* args); - - /* static so that signal handler can access and i...
3
3
1
[{"id": "G0", "claim": "The -A flag should be renamed (e.g. -P or -G) and a test script calling it should be added under scripts/, to separate examples from test cases.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The WS_MAX_AUTOTEST_COUNT macro block ...
null
wolfSSL__wolfssh__298
wolfSSL/wolfssh
298
defect
ee139f8e0dd67c5bc25c5b6d9e881467cbfb4f80
33e1092c43af3288e76fb5ba74c282a070684aa3
More Options
1. Added general disable flags for RSA and ECDSA. 2. Replaced HAVE_ECC, NO_RSA, NO_DSA with the general disable flags.
diff --git a/src/agent.c b/src/agent.c index 59a677427..75fa5711a 100644 --- a/src/agent.c +++ b/src/agent.c @@ -379,7 +379,7 @@ static int PostUnlock(WOLFSSH_AGENT_CTX* agent, } -#ifndef NO_RSA +#ifndef WOLFSSH_NO_RSA static int PostAddRsaId(WOLFSSH_AGENT_CTX* agent, byte keyType, byte* key, word32 keyS...
4
3
2
[{"id": "G0", "claim": "With WOLFSSH_NO_RSA defined the build fails: the PR compiles out PrepareUserAuthRequestPublicKey (guarded on both RSA and ECDSA being present) while its call site is still compiled, giving an implicit-function-declaration error.", "category": "correctness", "verdict": "supported", "priority": "P...
null
wolfSSL__wolfssh__361
wolfSSL/wolfssh
361
defect
359eb212f90da7effed62859b48c6f1bbef8266a
7968cb479ee2293ffcc8cdf5b57151bfcb3cf306
make loading user created keys into the examples easier
Loading and using created keys can now be done with: ``` ssh-keygen -t rsa -b 4096 -m PEM -f test.key <convert test.key to DER format test.key.der> ./examples/echoserver/echoserver -j test.key.pub ./examples/client/client -i test.key.der -j test.key.pub -u <username from test.key.pub> ```
diff --git a/examples/client/client.c b/examples/client/client.c index f60a7b8bf..af282892d 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -179,8 +179,10 @@ static void ShowUsage(void) static byte userPassword[256]; -static byte userPublicKey[512]; +static byte userPublicKeyBuf[512]; +stat...
1
1
1
[{"id": "G0", "claim": "The new -j public-key loading code causes an out-of-bounds read in LoadPublicKeyBuffer (echoserver.c:1354), as shown by the valgrind invalid read of size 1 just past the malloc'd buffer.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
wolfSSL__wolfssh__383
wolfSSL/wolfssh
383
defect
51638545d4e00c68998307ffc63ea1379196d3bc
a0674e929dc072cb6ae862a1798191f09745d009
Fixes when compiling with an old version of GCC
1. Add include config.h to the example and test tool sources. They use some of the types from wolfCrypt's types.h and aren't finding them available. Also moved config.h to the top level source directory. 2. In the version of the system I was building for, functions pread() and pwrite() weren't readily available. Added...
diff --git a/configure.ac b/configure.ac index a9dd7a0f0..6470db811 100644 --- a/configure.ac +++ b/configure.ac @@ -16,7 +16,7 @@ AM_INIT_AUTOMAKE([1.11 -Wall -Werror -Wno-portability foreign tar-ustar subdir-o AC_ARG_PROGRAM AC_CONFIG_MACRO_DIR([m4]) -AC_CONFIG_HEADERS([src/config.h]) +AC_CONFIG_HEADERS([config.h...
1
1
1
[{"id": "G0", "claim": "If HAVE_DECL_PREAD or HAVE_DECL_PWRITE are not defined at all (not merely defined to 0), it would make sense for the code to also default to the local versions of pread()/pwrite().", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wolfSSL__wolfssh__436
wolfSSL/wolfssh
436
defect
cace79e915cf064807fcc23c27bfe72f8d49bb2b
a48926b0dd65d8ab7abb248844513afddbb63d24
SFTP List
Fixes listing the contents of C:\ on Windows when running the wolfSFTP server. (ZD 14607, but they are using Nucleus)
diff --git a/examples/echoserver/echoserver.c b/examples/echoserver/echoserver.c index 58819e0ba..4b0522a09 100644 --- a/examples/echoserver/echoserver.c +++ b/examples/echoserver/echoserver.c @@ -2030,6 +2030,42 @@ static int wsUserAuth(byte authType, } +#ifdef WOLFSSH_SFTP +static int SetDefaultSftpPath(WOLFSSH*...
20
19
11
[{"id": "G0", "claim": "The new Windows code should use GetCurrentDirectory instead of GetCurrentDirectoryA, since the former appears to have real Microsoft documentation.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "SetDefaultSftpPath should check ...
null
wolfSSL__wolfssh__445
wolfSSL/wolfssh
445
defect
d42230d629808cfc32762c66ab9f28f9148987ae
c42f8fc2fe42e45a29b3b62b215d1b3d4acbf2b6
wolfSSHd Wildcard Config Includes
1. Fix the wildcard config file include. 2. Update the guard flags so macOS can also use wildcards. 3. Change the user priviledge separating setting to a bitfield. 4. Add test_configuration test to gitignore. 5. Process the included config files in strcmp order.
diff --git a/.gitignore b/.gitignore index 8db4d74d4..865755744 100644 --- a/.gitignore +++ b/.gitignore @@ -58,6 +58,7 @@ examples/scpclient/wolfscp # applications apps/wolfsshd/wolfsshd +apps/wolfsshd/test/test_configuration # test output tests/*.test diff --git a/apps/wolfsshd/configuration.c b/apps/wolfsshd...
3
3
2
[{"id": "G0", "claim": "Tests for the wildcard-include behavior should be added to test_configuration.c.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Include handling code should use the X/W portability functions (e.g. WREADDIR instead of readdir)...
null
wolfSSL__wolfssh__467
wolfSSL/wolfssh
467
defect
abd1b6f888f3496fdc37de9932fc2525b319ac3a
7e99fb3aae6e1df35dc1dce51056b02ff8648ce8
Multiple Server Keys
1. Allow user to add multiple server keys to the CTX up to a limit. 2. Clear the list of server's keys when releasing the CTX. 3. Update the API test case. 4. Server key algo list based on keys loaded. 5. Server uses key requested by client. 6. Change echoserver to load ECC and RSA key, -E option to select order. ...
diff --git a/examples/echoserver/echoserver.c b/examples/echoserver/echoserver.c index 65712ff0b..0c06500fc 100644 --- a/examples/echoserver/echoserver.c +++ b/examples/echoserver/echoserver.c @@ -2087,7 +2087,7 @@ static void ShowUsage(void) printf(" -? display this help and exit\n"); printf(" -1 ...
16
16
4
[{"id": "G0", "claim": "The new error code WS_CTX_KEY_COUNT should carry an _E suffix to match the error-code naming convention.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CtxResourceFree frees certificate buffers with DYNTYPE_PRIVKEY; the c...
null
wolfSSL__wolfssh__491
wolfSSL/wolfssh
491
defect
7c92e341802c89582799153450c7c4e3dfd418cc
bdb8cacadbeb60d64387cd05467aa73bea35994e
SFTP Stall Fix
SFTP Stall Fix 1. Fixed issue where a SFTP connection would stall while upload a large file. 2. Remove a little duplicate code. 3. Increased the channel receive buffer size to 128k. 4. Fixed the max packet size to 32k. 5. Clear the error register when calling stream read. To test: Enable SFTP. Start the echos...
diff --git a/src/ssh.c b/src/ssh.c index 020e94640..07943fd81 100644 --- a/src/ssh.c +++ b/src/ssh.c @@ -1007,48 +1007,7 @@ int wolfSSH_stream_peek(WOLFSSH* ssh, byte* buf, word32 bufSz) } -/* moves the window for more room - * returns WS_SUCCESS on success */ -static int wolfSSH_stream_adjust_window(WOLFSSH* ssh)...
3
3
2
[{"id": "G0", "claim": "With the DEFAULT_WINDOW_SZ change, the default window size listed in README.md also needs to be updated.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A comment on the choice of DEFAULT_MAX_PACKET_SZ should be added, notin...
null
wolfSSL__wolfssh__517
wolfSSL/wolfssh
517
defect
7fa4f4a794c79426a5da3b0e23c4ce1ba4259db8
b8740f58168c85565b975258961323cdb1f5bffc
RFC 8332: Part 1
1. Add server auth support for RSA signing with SHA2-256 and SHA2-512.
diff --git a/src/agent.c b/src/agent.c index 1522f3b4c..9706706f0 100644 --- a/src/agent.c +++ b/src/agent.c @@ -668,8 +668,8 @@ static WOLFSSH_AGENT_ID* FindKeyId(WOLFSSH_AGENT_ID* id, } -#if !defined(WOLFSSH_NO_SSH_RSA_SHA2_256) || \ - !defined(WOLFSSH_NO_SSH_RSA_SHA2_512) +#if !defined(WOLFSSH_NO_RSA_SHA2_25...
3
3
3
[{"id": "G0", "claim": "In tests/api.c the new lastKeySz line reads from ctx->privateKeySz when it should read from ctx->privateKey (the struct's keySz member).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new wc_HashGetDigestSize(hashId) call...
null
wolfSSL__wolfssh__519
wolfSSL/wolfssh
519
defect
7b3563a4b65692ca1de1203dd8f564bdd282a64f
796a745a9231eab0e440ba77fa50644d97a1f76d
break between SSH accept and SCP operation
setup chroot with scp operations too, breaks after SSH handshake and returns to application
diff --git a/apps/wolfsshd/wolfsshd.c b/apps/wolfsshd/wolfsshd.c index 6e5cd7974..0096a8709 100644 --- a/apps/wolfsshd/wolfsshd.c +++ b/apps/wolfsshd/wolfsshd.c @@ -435,6 +435,69 @@ static int SetupChroot(WOLFSSHD_CONFIG* usrConf) return ret; } +#ifdef WOLFSSH_SCP +static int SCP_Subsystem(WOLFSSHD_CONNECTION* ...
1
1
1
[{"id": "G0", "claim": "Copying a file to the server with scp (wolfSSHd) hangs after the transfer completes.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
wolfSSL__wolfssh__604
wolfSSL/wolfssh
604
defect
7578a7dc9b035ca8351e5761a773363a7b484cb2
ca6c50d1eab43a450b152f44e605fc8ebf78b3ba
wolfSSH Client with OpenSSH-format Keys
1. Move the KeySignature struct around in internal.c so it can be used for a couple tasks. 2. Add decoder for the OpenSSH-format keys. 3. Add an identification function for the new key. 4. Update ReadKey to handle the new format.
diff --git a/apps/wolfssh/common.c b/apps/wolfssh/common.c index 3945866c2..7d0ccb44d 100644 --- a/apps/wolfssh/common.c +++ b/apps/wolfssh/common.c @@ -379,7 +379,7 @@ int ClientSetEcho(int type) newTerm.c_lflag &= ~(ICANON | ECHOE | ECHOK | ECHONL | ISIG); } else { - newTerm....
7
7
4
[{"id": "G0", "claim": "The hard-set 256-byte buffers (RSA e/n and ECDSA q) in the new WS_KeySignature struct should use the max RSA/key size macros instead of a hard-coded number.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new OpenSSH k...
null
wolfSSL__wolfssh__650
wolfSSL/wolfssh
650
defect
dce3cf09e98e242797eac56c5aaf2342eb37aa0f
b256522f5b68a7a0063fe33d1d078c7d68494f13
fix WOLFSSH_NO_RSA
Fix WOLFSSH_NO_RSA case wolfssl $ ./configure --enable-ssh --enable-rsa=no wolfssh $ ./configure --with-wolfssl=/usr/local/ CFLAGS="-DWOLFSSH_NO_RSA"
diff --git a/examples/client/common.c b/examples/client/common.c index 671532a4d..5a2c2ba63 100644 --- a/examples/client/common.c +++ b/examples/client/common.c @@ -642,7 +642,7 @@ int ClientUseCert(const char* certName) * returns 0 on success */ int ClientSetPrivateKey(const char* privKeyName, int userEcc) { - ...
1
1
1
[{"id": "G0", "claim": "In src/internal.c the `#ifndef WOLFSSH_NO_RSA` guard should be moved from before `CalcRsaInverses()` to before `GetMpintToMp()` so the guard covers the right functions when RSA is disabled.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wolfSSL__wolfssh__662
wolfSSL/wolfssh
662
defect
a9973e0136aea6fabf1325b9a34efec55d914f69
e617e20e7af0a2447db03a54f9054165fab9456a
example set key algos
Was using this example addition when testing https://github.com/wolfSSL/wolfssh/pull/661
diff --git a/examples/client/client.c b/examples/client/client.c index 9fed6fac2..f089bc58c 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -117,6 +117,8 @@ static void ShowUsage(void) printf(" -A <filename> filename for DER CA certificate to verify host\n"); printf(" -X Ign...
1
1
1
[{"id": "G0", "claim": "The `return 0;` the PR adds at the end of the listAlgos branch in examples/client/client.c should be `WOLFSSL_RETURN_FROM_THREAD(0);` to clear up the Zephyr build issue.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}]
null
wolfSSL__wolfssh__754
wolfSSL/wolfssh
754
defect
b86dc9ae66a8d78995ed55a6dac531ce61713fae
644b98b4fa3458df14fa558e03b91be4f4961d01
wolfSSH support for using TPM based key for authentication
# Description wolfSSH tpm support using client side public key authentication with rsa. Code working just like the non tpm public key authentication with rsa # Testing Github CI test tpm-ssh.yml ## Just SSH For ssh public key auth with rsa use `./examples/echoserver/echoserver` and for client side use th...
diff --git a/README.md b/README.md index 357643931..f09747739 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,13 @@ Additional build options for wolfSSL are located in [chapter two](https://www.wolfssl.com/docs/wolfssl-manual/ch2/). of the wolfSSH manual. + building -------- From the wolfSSH source direct...
6
6
5
[{"id": "G0", "claim": "The pull request fails to build without TPM: src/ssh.c calls wc_PubKeyPemToDer without a guard and src/internal.c leaves sigSz unused, producing compile errors with -Werror.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The ...
null
wolfSSL__wolfssh__804
wolfSSL/wolfssh
804
defect
ee9bc3b6fd27acd4ee68ccffd455f12b9bb3b406
28c126229b478073cd0c598df9f962f9fa8d099b
Soft Disable AES-CBC
1. By default, soft disable AES-CBC. It isn't offered as a default encrypt algorithm, but may be set at runtime. 2. Add guard where AES-CBC can be added back as a default. 3. Add option to example client to run it with a custom encrypt algorithm list. 4. In the client, add macro to add items to the arg lists while c...
diff --git a/examples/client/client.c b/examples/client/client.c index 1329de39c..4806e3650 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -651,6 +651,7 @@ THREAD_RETURN WOLFSSH_THREAD client_test(void* args) const char* cmd = NULL; const char* privKeyName = NULL; const char...
4
3
0
[{"id": "G0", "claim": "The macro name WOLFSSH_NO_AES_CBC_SOFT_DISABLE is a double negative and may be confusing; consider renaming it (e.g. WOLFSSH_ENABLE_AES_CBC_ADVERTISEMENT) for clarity.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ne...
null
wolfSSL__wolfssh__869
wolfSSL/wolfssh
869
defect
8b83d63e95ebac9a4ec220ceed389120700a5af4
f6555294841fd06c134a31b6d036a14611910ee1
Add mlkem1024nistp384-sha384 and mlkem768x25519-sha256
1. Add the KEX algorithms mlkem1024nistp384-sha384 and mlkem768x25519-sha256. 2. Performed some comment and whitespace maintenance. 3. Updated the KEX test to test any KEX given the string with its name. Added the new KEX algorithms to the test. 4. Added a GitHub action to test the algorithm against OpenSSH. This...
diff --git a/src/internal.c b/src/internal.c index 6a208283b..c11faf075 100644 --- a/src/internal.c +++ b/src/internal.c @@ -146,8 +146,14 @@ Set when ECC or SHA2-512 are disabled. Set to disable use of ECDSA server authentication with prime NISTP521. WOLFSSH_NO_NISTP256_MLKEM768_SHA256 - Set when ML-KE...
7
3
1
[{"id": "G0", "claim": "The comment in KeyAgreeEcdhMlKem_client says \"I need to generated\" and should read \"I need to generate\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The comment describing the function as a hybrid of ECDHE and a po...
null
wolfSSL__wolfssh__873
wolfSSL/wolfssh
873
defect
e8e5d372e33aa38108a48275d7b1d256bc979680
4bfdb17ab99d2c613ccd7d9978cb4719cb51b4eb
Misc Updates
A large PR had a few small unrelated changes in it. Separated them out into this PR. 1. Cleanup some whitespace in the Global Request functions. 2. Add an accessor function to return a channel's type. 3. In the test suite, make the echoserver test its own function.
diff --git a/src/internal.c b/src/internal.c index 3a7508fc9..72e909f45 100644 --- a/src/internal.c +++ b/src/internal.c @@ -13477,7 +13477,8 @@ int SendIgnore(WOLFSSH* ssh, const unsigned char* data, word32 dataSz) return ret; } -int SendGlobalRequest(WOLFSSH* ssh, const unsigned char* data, word32 dataSz, int...
2
1
0
[{"id": "G0", "claim": "The new wolfSSH_ChannelGetType function should add WLOG debug statements at entry and exit for consistency with similar getter functions like wolfSSH_ChannelGetFwdFd and wolfSSH_ChannelGetSessionType.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
wolfSSL__wolfssh__876
wolfSSL/wolfssh
876
defect
d32dd2bf97393e31b7d7d18923eed1731344121e
aa1b1676cb6e2ef663e8357b7a4fe18a976176b1
Fix SFTP server hang on WS_WANT_WRITE with non-blocking sockets
When wolfSSH_SFTP_buffer_send() called wolfSSH_stream_send(), the data would be consumed into the SSH output buffer even if the underlying socket returned EWOULDBLOCK/EAGAIN. SendChannelData() returns the positive dataSz on WS_WANT_WRITE, causing the SFTP layer to advance its buffer index as if the data was sent. The S...
diff --git a/.github/workflows/paramiko-sftp-test.yml b/.github/workflows/paramiko-sftp-test.yml index 542eba102..d27469823 100644 --- a/.github/workflows/paramiko-sftp-test.yml +++ b/.github/workflows/paramiko-sftp-test.yml @@ -132,12 +132,29 @@ jobs: import os import time import sys -...
5
4
1
[{"id": "G0", "claim": "In the stress-test loop the SIGALRM alarm is only canceled on the success path, so a non-timeout exception can leave it armed and fire asynchronously later; cancel it in a `finally` block.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl...
null
wolfSSL__wolfssh__884
wolfSSL/wolfssh
884
defect
a2e6556a1ab41bdb451d209911e66a42398156b3
0cb7734af422fd862b96e01f255652353880a37a
Add more CI workflows for wolfSSH
- codespell.yml: Automated spell checking with project-specific ignore list - multi-compiler.yml: Test builds with gcc-11/12/13 and clang-14/15/17 - sanitizer....
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 000000000..e069c9336 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,26 @@ +name: Codespell + +on: + push: + branches: [ 'master', 'main', 'release/**' ] + pull_request: + branches: [ '*' ] +...
2
1
1
[{"id": "G0", "claim": "The multi-compiler workflow's install step installs only ${{ matrix.cc }} while the job sets CXX from the matrix, so the versioned C++ compilers (g++-11/12/13, clang++-14/15/17) are likely never installed and ./configure or compilation may fail when it tries to use CXX; install both ${{ matrix.c...
null
wolfSSL__wolfssh__890
wolfSSL/wolfssh
890
defect
010380666ee721db2bc3742443e5c72ed2e177a9
723f233f2d6af4cc4fbf346b026e9de97bf52b70
Client rsa-sha2-512
1. Separate the key type and signature type when handling user authentication. ssh-rsa is a key type used with rsa-sha2-256 and rsa-sha2-512 signatures, along with ssh-rsa signatures. 2. Allow rsa-sha2-512 to be used. 3. Fix bug where setting the key algorithm on the client command line was setting the list to NULL. ...
diff --git a/examples/client/client.c b/examples/client/client.c index 1eaf951d9..6124c7a90 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -854,7 +854,7 @@ THREAD_RETURN WOLFSSH_THREAD client_test(void* args) err_sys("Couldn't create wolfSSH client context."); if (keyList) { - ...
3
2
1
[{"id": "G0", "claim": "keySig->keyNameSz is computed with WSTRLEN() on keyName even though publicKeyType is a length-delimited buffer that may not be NUL-terminated, which can read past the end and potentially crash; keyNameSz should be set from authData->sf.publicKey.publicKeyTypeSz instead.", "category": "correctnes...
null
wolfSSL__wolfssh__895
wolfSSL/wolfssh
895
defect
010380666ee721db2bc3742443e5c72ed2e177a9
aa5a1e6f3f0b462349d7031250d10dd018d29198
macOS Semaphore Cleanup
macOS uses GCD for threading and semaphores, but they aren't quite like POSIX semaphores. macOS allows the use of named POSIX semaphores. 1. Convert the semaphores to named POSIX semaphores. 2. Simplify all calls for semaphores into single function calls of the wrapper API. 3. Update both examples/client/client.c ...
diff --git a/apps/wolfssh/wolfssh.c b/apps/wolfssh/wolfssh.c index 6efbece30..d9a03bd1a 100644 --- a/apps/wolfssh/wolfssh.c +++ b/apps/wolfssh/wolfssh.c @@ -272,22 +272,80 @@ static int sendCurrentWindowSize(thread_args* args) #ifndef _MSC_VER -#if (defined(__OSX__) || defined(__APPLE__)) +#if (defined(__OSX__) ||...
6
4
2
[{"id": "G0", "claim": "The semaphore typedef and static inline functions appear to have been added inside a function body, which standard C disallows, so move them to file scope so they are visible to all functions and compile.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}...
null
wolfSSL__wolfssh__906
wolfSSL/wolfssh
906
defect
e8f54ae3d0af7ac5bb0df1c029a8d15ee446e15f
9dfa93f4b9bd3e1d3b1bf38991a5db53a9eee1e5
Customer reported issues
Fixes ZD21548 * Fix wolfSSH_ProcessBuffer to check type * In SendKexDhReply, handle when WOLFSSH_CERTS is not defined * Fix DoUserAuthRequestRsa() and DoUserAuthRequestRsaCert() to accept ssh-rsa, rsa-sha2-256, and rsa-sha2-512 * Add test case test_wolfSSH_CTX_UsePrivateKey_buffer_pem
diff --git a/src/internal.c b/src/internal.c index 74493adea..e1ab4fd0b 100644 --- a/src/internal.c +++ b/src/internal.c @@ -2403,7 +2403,10 @@ int wolfSSH_ProcessBuffer(WOLFSSH_CTX* ctx, if (der == NULL) return WS_MEMORY_E; - ret = wc_CertPemToDer(in, inSz, der, inSz, wcType); + i...
3
1
1
[{"id": "G0", "claim": "WMEMCMP(publicKeyType, ...) in DoUserAuthRequestRsaCert() is called without guarding publicKeyType against NULL, so add a publicKeyType != NULL check (and/or early-fail) for consistency with DoUserAuthRequestRsa() and to avoid a possible NULL dereference.", "category": "correctness", "verdict": ...
null
wolfSSL__wolfssh__910
wolfSSL/wolfssh
910
defect
4ed01d3d5a4a3f12fe380571cf0b14fb8421ed75
1473a1399b4380f774b88d222a3248b6f715a732
Fix SendUserAuthKeyboardResponse() and add regress tests
This PR introduces 2 changes: - Fix the SendUserAuthKeyboardResponse() in src/internal.c so that this validates invalid ssh or missing userAuthCb. And also this adds the success check of PreparePacket(). - Add the regress test case for SendUserAuthKeyboardResponse()
diff --git a/src/internal.c b/src/internal.c index 8fa1d9c5d..5f5fbf4bb 100644 --- a/src/internal.c +++ b/src/internal.c @@ -15419,6 +15419,7 @@ static int BuildUserAuthRequestPublicKey(WOLFSSH* ssh, int SendUserAuthKeyboardResponse(WOLFSSH* ssh) { byte* output; + int authRet = WS_SUCCESS; int ret = WS_S...
7
6
2
[{"id": "G0", "claim": "When ssh->ctx->userAuthCb is NULL, SendUserAuthKeyboardResponse() returns WS_INVALID_STATE_E without freeing the ssh->kbAuth prompt allocations, leaving them hanging for the rest of the session and possibly leaking them if another info-request overwrites ssh->kbAuth.", "category": "correctness",...
null
wolfSSL__wolfssh__912
wolfSSL/wolfssh
912
defect
4ed01d3d5a4a3f12fe380571cf0b14fb8421ed75
3d3c2c0a25c3c95e64da05a3b217d6d066bc4e03
Add unit test for VerifyMac
This PR adds the unit test that injects a packet with a corrupted MAC (e.g., flip one byte in the MAC region of a captured packet buffer) and verify that DoReceive returns WS_FATAL_ERROR with ssh->error == WS_VERIFY_MAC_E. We can't call VerifyMac() directly because it's static function in src/internal.c. That's why...
diff --git a/src/internal.c b/src/internal.c index 8fa1d9c5d..74ca85b35 100644 --- a/src/internal.c +++ b/src/internal.c @@ -10475,6 +10475,13 @@ int DoReceive(WOLFSSH* ssh) return ret; } +#ifdef WOLFSSH_TEST_INTERNAL +int wolfSSH_TestDoReceive(WOLFSSH* ssh) +{ + return DoReceive(ssh); +} +#endif + int Do...
4
2
0
[{"id": "G0", "claim": "GrowBuffer is given totalLen as additional bytes each loop iteration, so inputBuffer can keep over-allocating across cases; reset inputBuffer.length/idx (or ShrinkBuffer) before GrowBuffer.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2"...
null
wolfSSL__wolfssh__913
wolfSSL/wolfssh
913
defect
aaf3e5574e0546d6794291ce8d4d08ca8495a807
c4f7f13d6ea52280f946d63e370e10deae41bee9
Add an integration test where a client authenticates using public key
This PR adds the integration test for client authentication scenario to test server-side public key authentication signature verification path. There are three test functions in tests/auth.c: - test_pubkey_auth_rsa() — valid RSA key is accepted - test_pubkey_auth_ecc() — valid ECC key is accepted - test_pubkey_au...
diff --git a/tests/auth.c b/tests/auth.c index c5e82bcc8..63b8c07ce 100644 --- a/tests/auth.c +++ b/tests/auth.c @@ -33,6 +33,7 @@ #include <stdio.h> #include <wolfssh/ssh.h> #include <wolfssh/internal.h> +#include <wolfssl/wolfcrypt/sha256.h> #define WOLFSSH_TEST_CLIENT #define WOLFSSH_TEST_SERVER #define WOLFSS...
12
10
7
[{"id": "G0", "claim": "The new pubkey tests unconditionally depend on SHA-256 (sha256 include and wc_Sha256Hash usage), so builds with NO_SHA256 defined will fail to compile; wrap the helpers and include in a !defined(NO_SHA256) guard and skip the tests otherwise.", "category": "correctness", "verdict": "supported", "...
null
wolfSSL__wolfssh__98
wolfSSL/wolfssh
98
defect
d7cd20bdb9a8a3e0e9739d5f57c0c9a2a48e68fe
cbeb2cf566d66adf7e6d9c3ee95c774d0e4e2b4d
TCP Port Forwarding
Implementation of client side initiated port forwarding. Use the example wolffwd tool to set up a tunnel to a server.
diff --git a/.gitignore b/.gitignore index a3a087265..c8800fb47 100644 --- a/.gitignore +++ b/.gitignore @@ -51,6 +51,7 @@ diff examples/client/client examples/echoserver/echoserver examples/server/server +examples/wolffwd/wolffwd wolfsftp/client/wolfsftp # test output diff --git a/configure.ac b/configure.ac in...
6
4
3
[{"id": "G0", "claim": "The libwolfssl error message in configure.ac should use a full stop instead of a comma before \"It can be obtained\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The fprintf and fflush calls in the tcpip-forward handling...
null
wolfSSL__wolfssl__10018
wolfSSL/wolfssl
10,018
defect
46f4b3b2c4b0690bbbf94664984d9e81f7e26f1b
e0a19a798ee015ecec5209839cf7c0e283ceef3d
Fix GetSafeContent to check length
# Description Added bounds check after GetObjectId() in GetSafeContent() to verify the OID didn't consume more bytes than the ContentInfo SEQUENCE declared. Returns ASN_PARSE_E if (localIdx - curIdx) > (word32)curSz, preventing the unsigned integer underflow in the ci->dataSz calculation. Credit to `Muhammad Ary...
diff --git a/tests/api/test_pkcs12.c b/tests/api/test_pkcs12.c index a2cc3d69b4c..f1e3cc72e6b 100644 --- a/tests/api/test_pkcs12.c +++ b/tests/api/test_pkcs12.c @@ -235,3 +235,37 @@ int test_wc_d2i_PKCS12_bad_mac_salt(void) return EXPECT_RESULT(); } +/* Test that a crafted PKCS12 with a ContentInfo SEQUENCE len...
3
3
0
[{"id": "G0", "claim": "The new test should assert the expected error code (e.g., ASN_PARSE_E) from wc_d2i_PKCS12() for the crafted input instead of only a generic parse failure (< 0), so the new bounds-check path is specifically validated.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "in...
null
wolfSSL__wolfssl__10024
wolfSSL/wolfssl
10,024
defect
5b9d0a13bf63bda5c5c25cafa6e083d7ac1f0bea
6446bb21155e80a41538d1f815a6cf5a5a0cc0f8
Fix DecodeAltNames length check
# Description In `DecodeAltNames()`, the non-template ASN path (`--enable-asn=original`) needs a bounds check before `length -= strLen`. Fixes zd21390 # Testing Added `test_DecodeAltNames_length_underflow` # Checklist - [x] added tests - [ ] updated/added doxygen - [ ] updated appropriate READMEs...
diff --git a/tests/api/test_asn.c b/tests/api/test_asn.c index ecfe4ede50f..1644230eaed 100644 --- a/tests/api/test_asn.c +++ b/tests/api/test_asn.c @@ -920,3 +920,176 @@ int test_wc_DecodeRsaPssParams(void) #endif /* WC_RSA_PSS && !NO_RSA && !NO_ASN */ return EXPECT_RESULT(); } + +/* Test that DecodeAltNames re...
4
2
0
[{"id": "G0", "claim": "The test duplicates a very large DER blob twice, and should instead keep a single baseline certificate array and create the malformed variant at runtime by copying it and patching only the SAN SEQUENCE length byte.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope...
null
wolfSSL__wolfssl__10034
wolfSSL/wolfssl
10,034
defect
8b388ba3e3469289e31bb3c82e92c632c3564e2d
607183a962c5b9bddf868b0e9b55b8c1ef60342e
verify ciphersuite in CH2 matches HRR
# Description When a client sends a ClientHello which prompts a HelloRetryRequest the client is able to send a second ClientHello where the ciphersuite does not match what was chosen in the HelloRetryRequest. Our server would accept this and continue with the connection. Extended what was done in PR #9340. Now th...
diff --git a/src/tls13.c b/src/tls13.c index c4864394838..ea45a65c40e 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -6635,8 +6635,10 @@ static int RestartHandshakeHashWithCookie(WOLFSSL* ssl, Cookie* cookie) hrrIdx += ssl->session->sessionIDSz; } - /* Cipher Suite */ + /* Restore the cipher suite ...
3
1
1
[{"id": "G0", "claim": "The CH2-vs-HRR cipher suite mismatch check gated on got_client_hello == 2 can be missed when additional ClientHello messages are processed (e.g. DTLS retransmits or duplicate CH2 after HRR); widen the condition to >= 2 or gate on an explicit HRR/CH2 state flag so later ClientHello processing can...
null
wolfSSL__wolfssl__10037
wolfSSL/wolfssl
10,037
defect
994a1fbacca12946fad9914916b3c8d844340b58
6a70cba22b47c03e268af4a5a100dd0d71e357c7
fix examples to follow options.h config
The example server/client should not be modifying macro defines that come from how the wolfSSL library is configured when built.
diff --git a/examples/client/client.c b/examples/client/client.c index 8e925f41173..5bccfa76847 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -32,9 +32,6 @@ #endif #include <wolfssl/wolfcrypt/settings.h> -#undef TEST_OPENSSL_COEXIST /* can't use this option with this example */ -#undef OPE...
8
3
3
[{"id": "G0", "claim": "In the example-server code this PR migrated to the wolfSSL API, wolfSSL_get_error() is called with 0 instead of the immediately preceding I/O call's return value, which can misreport errors and break the WANT_READ/WANT_WRITE and async retry handling; the flagged calls (NonBlockingSSL_Accept, Ser...
null
wolfSSL__wolfssl__10071
wolfSSL/wolfssl
10,071
defect
5b1d2d795c0e1d13dc452071c07f39386cb6062f
41b969b7288470d74d50dfaac579502ca226cf14
Add bounds check on wolfSSL_X509_notBefore and wolfSSL_X509_notAfter
# Description Fixes zd 21416 # Testing How did you test? # Checklist - [ ] added tests - [ ] updated/added doxygen - [ ] updated appropriate READMEs - [ ] Updated manual and documentation
diff --git a/src/internal.c b/src/internal.c index 3555a96eb59..dc4d3f347bf 100644 --- a/src/internal.c +++ b/src/internal.c @@ -13743,11 +13743,34 @@ static int CopyREQAttributes(WOLFSSL_X509* x509, DecodedCert* dCert) } #endif /* WOLFSSL_CERT_REQ */ +/* Copy an ASN-encoded date (type + length + data) into a WOLFS...
7
5
2
[{"id": "G0", "claim": "The root cause in CopyDecodedToX509 should cap the copied date length at CTC_DATE_SIZE - 2 instead of MAX_DATE_SZ, in both the certificate and the attribute-certificate paths, so the struct cannot enter a state the fixed getters reject.", "category": "correctness", "verdict": "supported", "prior...
null
wolfSSL__wolfssl__10072
wolfSSL/wolfssl
10,072
defect
7efc962d047aa5590c7d844edad87e74aed833b5
3321d70b4a04a5aa81f441a9861530fe2624900d
Extend/Add label/id extension functions
## Summary - Add `wc_InitCmac_Id()` / `wc_InitCmac_Label()` so CMAC can forward a hardware key-slot identifier to the underlying AES context. - Add `wc_AesNew_Id()`/ `wc_AesNew_Label()` and `wc_NewRsaKey_Id()`/`wc_NewRsaKey_Label()` constructors following the same pattern. - Refactor each algorithm's init into a...
diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index b75d35ebb17..0d948603dc4 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -4992,6 +4992,125 @@ void bench_rng(void) #endif /* WC_NO_RNG */ +/* ==================================================...
6
6
3
[{"id": "G0", "claim": "The new gating macro name WC_TEST_NO_ECC_CHECK_KEY is inconsistent with the other gating macros this PR introduced that use a \"skip\" prefix.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In _InitCmac_common the comment...
null
wolfSSL__wolfssl__10076
wolfSSL/wolfssl
10,076
defect
7efc962d047aa5590c7d844edad87e74aed833b5
ccfc95809b13c8c627254b532dcee97fd834b952
Dtls13: ack management improvements
Improve DTLS 1.3 ACK record handling, enforcing record count limits. It also introduces comprehensive tests for these edge cases. * Added a strict upper bound (`DTLS13_ACK_MAX_RECORDS`) on the number of ACK records that can be tracked and encoded
diff --git a/src/dtls13.c b/src/dtls13.c index 7598bf0e9b6..ca2389944c2 100644 --- a/src/dtls13.c +++ b/src/dtls13.c @@ -734,9 +734,19 @@ int Dtls13RtxAddAck(WOLFSSL* ssl, w64wrapper epoch, w64wrapper seq) Dtls13RecordNumber** prevNext = &ssl->dtls13Rtx.seenRecords; Dtls13RecordNumber* cur = ssl->dtls...
5
3
1
[{"id": "G0", "claim": "DTLS13_ACK_MAX_RECORDS derived from WOLFSSL_MAX_16BIT permits ACK payloads far larger than the allowed record/datagram size, which can lead to send failures and CPU/memory amplification; consider deriving the limit from the maximum encodable record payload.", "category": "correctness", "verdict"...
null
wolfSSL__wolfssl__10077
wolfSSL/wolfssl
10,077
defect
7efc962d047aa5590c7d844edad87e74aed833b5
d81feea09d6173802a64b88be6fed0e2adcd942f
Add ML-KEM support for PKCS#11
## PKCS#11: Add ML-KEM support Adds PKCS#11 integration for ML-KEM (key generation, encapsulation, decapsulation) through the crypto callback path, using the PKCS#11 3.2 `C_EncapsulateKey`/`C_DecapsulateKey` interface. ...
diff --git a/src/tls.c b/src/tls.c index 535b43826bd..823d974dadd 100644 --- a/src/tls.c +++ b/src/tls.c @@ -8596,7 +8596,9 @@ static int TLSX_KeyShare_GenEccKey(WOLFSSL *ssl, KeyShareEntry* kse) } #ifdef WOLFSSL_HAVE_MLKEM -#if defined(WOLFSSL_MLKEM_CACHE_A) && \ +#if (defined(WOLFSSL_MLKEM_CACHE_A) || \ + (def...
10
8
3
[{"id": "G0", "claim": "The new WOLF_CRYPTO_CB block in wc_MlKemKey_MakeKey lacks a ret == 0 guard, so a prior validation failure (e.g. key == NULL) falls through and dereferences key->devId/key->type, unlike the guarded Encapsulate/Decapsulate blocks; add the guard.", "category": "correctness", "verdict": "supported",...
null
wolfSSL__wolfssl__10080
wolfSSL/wolfssl
10,080
defect
7efc962d047aa5590c7d844edad87e74aed833b5
c83e130e5ede1bc74a8410762b005cd586ea682c
Fenrir fixes
Fixes F-1246, F-597, F-1250, F-587, F-588, F-589, F-590, F-754, F-755, F-1247, F-759, F-761, F-1249, F-760, F-1248
diff --git a/src/internal.c b/src/internal.c index 3555a96eb59..85742339a60 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1180,6 +1180,8 @@ static int ImportKeyState(WOLFSSL* ssl, const byte* exp, word32 len, byte ver, word16 i, wordCount, wordAdj = 0; /* do window */ + if (idx + OPAQU...
1
1
1
[{"id": "G0", "claim": "The dq zeroisation should use dqSz instead of the mismatched dpSz when freeing in _PrivateOperation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wolfSSL__wolfssl__10096
wolfSSL/wolfssl
10,096
defect
b7e7e7555f0f949ec3b2045532a7a11c1b987ccb
718b10b35a76b69967a34d52732af955dd41473e
Fix out of bounds shift in ML-DSA
# Description Ensure cast is performed before large shift in `dilithium.c`. Add test case and use UBSan in CI to confirm. Fixes zd#21458 # Testing Added unit test, updated pq-all.yml # Checklist - [x] added tests - [ ] updated/added doxygen - [ ] updated appropriate READMEs - [ ] Updated manual...
diff --git a/.github/workflows/pq-all.yml b/.github/workflows/pq-all.yml index 4240cfe1f4b..988618c07e4 100644 --- a/.github/workflows/pq-all.yml +++ b/.github/workflows/pq-all.yml @@ -18,6 +18,7 @@ jobs: matrix: config: [ # Add new configs here + '--disable-shared --enable-dilithium...
1
1
1
[{"id": "G0", "claim": "The pull request's added source text makes the check-source-text CI check fail: wolfcrypt/src/dilithium.c introduces C++-style // comments and tests/api/test_mldsa.c contains flagged source text (lines 24792 and 24814).", "category": "maintainability", "verdict": "supported", "priority": "P0", "...
null
wolfSSL__wolfssl__10103
wolfSSL/wolfssl
10,103
defect
76a498f7eab5ffaf1ddff4f378dd6aa30c902550
a30c6af19263d37984ba82a5b49ab9eba756f17a
Fix DTLS 1.3 extSz out-of-bounds and word16 truncation on oversized certificate chains
# Description Fix DTLS 1.3 extSz out-of-bounds and word16 truncation on oversized certificate chains. Fixes zd#21435 # Testing added test_dtls13_oversized_cert_chain that exercises the appropriate code pathss # Checklist - [x] added tests - [ ] updated/added doxygen - [ ] updated appropriate READ...
diff --git a/src/dtls13.c b/src/dtls13.c index 7598bf0e9b6..9ec1b2d694d 100644 --- a/src/dtls13.c +++ b/src/dtls13.c @@ -1033,6 +1033,10 @@ static int Dtls13SendFragmentedInternal(WOLFSSL* ssl) ssl->dtls13FragmentsBuffer.buffer + ssl->dtls13FragOffset, fragLength); + if ((word32)outpu...
3
3
0
[{"id": "G0", "claim": "Move the outputSz > WOLFSSL_MAX_16BIT guard in Dtls13SendFragmentedInternal to just after outputSz is computed.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Move the sendSz > WOLFSSL_MAX_16BIT guard in Dtls13RtxSendBuff...
null
wolfSSL__wolfssl__10112
wolfSSL/wolfssl
10,112
defect
b36a9ca80e8285e80dc0d1a45e057ea60d0fb1a1
d0827687b0a44a850bd5e9ec5003113fdba02bc9
Fix CertFromX509 copy length check
# Description Fix CertFromX509 by adding a length check before copy. Fixes zd21470 # Testing Added `test_x509_CertFromX509_akid_overflow` # Checklist - [x] added tests - [ ] updated/added doxygen - [ ] updated appropriate READMEs - [ ] Updated manual and documentation
diff --git a/src/x509.c b/src/x509.c index 8fc8edc57b6..0c72d1b8002 100644 --- a/src/x509.c +++ b/src/x509.c @@ -11856,25 +11856,28 @@ static int CertFromX509(Cert* cert, WOLFSSL_X509* x509) return WOLFSSL_FAILURE; } - if (x509->authKeyIdSz < sizeof(cert->akid)) { #ifdef WOLFSSL_AKID_NAME - ...
4
2
2
[{"id": "G0", "claim": "The new test allocates a 16KB buf (and repeatedly XMEMMOVEs within it) on the stack, which can break WOLFSSL_SMALL_STACK/embedded test builds that avoid large stack frames; use a heap allocation (XMALLOC/XFREE) when WOLFSSL_SMALL_STACK is defined, or reduce the buffer size.", "category": "testin...
null
wolfSSL__wolfssl__10120
wolfSSL/wolfssl
10,120
defect
6fc93ac4120f8288d2a886867109e2e59333595f
21c6568883750e58896a637b5f35fd18d3fe9554
20260331-wolfcrypt-Wcast-qual
Fixes for `-Wcast-qual` hygiene in wolfCrypt. `.github/workflows/wolfCrypt-Wconversion.yml`: Add `-Wcast-qual` to all scenarios. `wolfssl/wolfcrypt/signature.h`, `wolfcrypt/src/signature.c`, `doc/dox_comments/header_files/signature.h`: remove incorrect const qualifier on the key argument in * `wc_Signat...
diff --git a/.github/workflows/wolfCrypt-Wconversion.yml b/.github/workflows/wolfCrypt-Wconversion.yml index 22f787b8d4d..576b7e29bc1 100644 --- a/.github/workflows/wolfCrypt-Wconversion.yml +++ b/.github/workflows/wolfCrypt-Wconversion.yml @@ -18,17 +18,17 @@ jobs: matrix: config: [ # Add ne...
3
1
1
[{"id": "G0", "claim": "asn_orig.c's DecodeAltNames()/DecodeConstructedOtherName() allocate name (and ipString/ridString) buffers without setting the corresponding nameStored/ipStringStored/ridStringStored flags, so if asn.c's FreeAltNames() -- which this PR made free only when the flags are set -- handles entries buil...
null
wolfSSL__wolfssl__10122
wolfSSL/wolfssl
10,122
defect
68eaf677672e746f27281b1a533fec4b34b12457
48338d3fb515af0b45bd41c465bda04f393cf993
F-1370 : Tighten key_len check from `>=` to `==`
# Description ## Summary `wc_SignatureGetSize()` (and callers that propagate `key_len`) previously accepted any `key_len >= sizeof(key_type)`, meaning an oversized value silently passed the guard and allowed the `void*` to be dereferenced as the wrong type. This PR tightens the check to exact equality and aligns docu...
diff --git a/doc/dox_comments/header_files/signature.h b/doc/dox_comments/header_files/signature.h index 61138878372..cf30d61e3e9 100644 --- a/doc/dox_comments/header_files/signature.h +++ b/doc/dox_comments/header_files/signature.h @@ -4,13 +4,22 @@ \brief This function returns the maximum size of the resulting s...
5
5
1
[{"id": "G0", "claim": "The updated doxygen states key_len must be exactly the key size unconditionally, which contradicts the tested valid call wc_SignatureGetSize(sig_type, NULL, key_len) returning 0; the contract should clarify that key_len matters only when key is non-NULL.", "category": "documentation", "verdict":...
null
wolfSSL__wolfssl__10131
wolfSSL/wolfssl
10,131
defect
0c9b6397be463c0e5bd7d0c8c1bd8619dc9b3aa8
1873acb9cbe637e9268f53adf2d1543043dfd56e
20260403-WC_FIPS_186
wolfcrypt: add additional enforcement of correct digest sizes in signature gen and verify ops: * add `WC_FIPS_186_4`, `WC_FIPS_186_4_PLUS`, `WC_FIPS_186_5`, and `WC_FIPS_186_5_PLUS` feature macros. * add support for `WC_HASH_CUSTOM_MIN_DIGEST_SIZE`, `WC_HASH_CUSTOM_MAX_DIGEST_SIZE`, and `WC_HASH_CUSTOM_MAX_B...
diff --git a/.wolfssl_known_macro_extras b/.wolfssl_known_macro_extras index 61f67b71214..1563dede133 100644 --- a/.wolfssl_known_macro_extras +++ b/.wolfssl_known_macro_extras @@ -639,6 +639,7 @@ WC_DILITHIUM_FIXED_ARRAY WC_DISABLE_RADIX_ZERO_PAD WC_FLAG_DONT_USE_AESNI WC_FORCE_LINUXKM_FORTIFY_SOURCE +WC_HASH_CUSTO...
5
3
1
[{"id": "G0", "claim": "The new hash-length validation in dilithium_sign_ctx_hash_with_seed drops the (ret == 0) guard that the old code and the verify function have, so when ret is already non-zero the check can overwrite the original error with BAD_LENGTH_E or leave it intact, masking it.", "category": "correctness",...
null
wolfSSL__wolfssl__10132
wolfSSL/wolfssl
10,132
defect
0c9b6397be463c0e5bd7d0c8c1bd8619dc9b3aa8
493c950dd9872b11e78b1ae095e87629233db3f8
20260404-default_rng_bank
`wolfcrypt/src/rng_bank.c` and `wolfssl/wolfcrypt/rng_bank.h`: add new `wc_rng_bank_default` facility: * `wc_rng_bank_default_set()` * `wc_rng_bank_default_checkout()` * `wc_rng_bank_default_checkin()` * `wc_rng_bank_default_clear()` `wolfssl/wolfcrypt/wc_port.h`: * add `wolfSSL_RefInc2()` and `wo...
diff --git a/linuxkm/lkcapi_sha_glue.c b/linuxkm/lkcapi_sha_glue.c index 1a3c55574ce..5d973d681ec 100644 --- a/linuxkm/lkcapi_sha_glue.c +++ b/linuxkm/lkcapi_sha_glue.c @@ -997,7 +997,7 @@ struct wc_swallow_the_semicolon #include <wolfssl/wolfcrypt/random.h> #include <wolfssl/wolfcrypt/rng_bank.h> -static volatile ...
12
10
2
[{"id": "G0", "claim": "In the >= 7.1.0 non-FIPS cleanup path of wc_linuxkm_drbg_cleanup, wc_rng_bank_fini(&default_bank) is skipped when wc_rng_bank_default_clear fails (while default_bank_inited is cleared anyway), leaking the bank's resources; the cleanup should always finalize the bank, matching the other cleanup p...
null
wolfSSL__wolfssl__10133
wolfSSL/wolfssl
10,133
defect
0c9b6397be463c0e5bd7d0c8c1bd8619dc9b3aa8
96584b3217834286217198af90ea6863d0325477
Improved ECC curve validation
One part of zd21460, extracted from #10102 with the performance regression fixed. The second commit 96584b3 is also part of #10102. I added it here to make CI tests pass. It will be skipped either way in the merge.
diff --git a/src/pk_ec.c b/src/pk_ec.c index 2a44ca55de7..5a63dd9154f 100644 --- a/src/pk_ec.c +++ b/src/pk_ec.c @@ -1532,7 +1532,7 @@ int wolfSSL_ECPoint_d2i(const unsigned char *in, unsigned int len, ret = 0; } - /* wolfSSL_EC_POINT_set_affine_coordinates_GFp check that the point is + ...
4
4
3
[{"id": "G0", "claim": "In the SP-path on-curve validation (when WOLFSSL_HAVE_SP_ECC, WOLFSSL_SM2 and WOLFSSL_SP_SM2 are defined), the SM2 retry lacks the `curve_id < 0` guard that the non-SP fallback has, so a point imported with an explicitly requested P-256 curve that lies on SM2 but not P-256 can be silently reassi...
null
wolfSSL__wolfssl__10170
wolfSSL/wolfssl
10,170
defect
1d363f3adceba9d1478230ede476a37b0dcdef24
0ac0e1fa82007866229a2f8239389efca8056d0e
Fix partial chain verification
# Description The chain is now only accepted at a partial-chain terminal if `ctx->current_cert` is itself in the original trust set. Fixes zd21566 # Testing Added new test in `test_wolfSSL_X509_STORE_CTX_ex` # Checklist - [x] added tests - [ ] updated/added doxygen - [ ] updated appropriate READM...
diff --git a/src/x509_str.c b/src/x509_str.c index 90113caede2..e973f9ae0ca 100644 --- a/src/x509_str.c +++ b/src/x509_str.c @@ -552,6 +552,48 @@ static int X509VerifyCertSetupRetry(WOLFSSL_X509_STORE_CTX* ctx, return ret; } +/* Returns 1 if x509's DER matches an entry in either the head [0, origNum) + * slice ...
10
7
4
[{"id": "G0", "claim": "origCertsNum = wolfSSL_sk_X509_num(certs) runs in the else branch even when certs could be NULL (e.g. empty ctxIntermediates and NULL certs), risking a NULL dereference; set it defensively with the NULL-guarded ternary or restructure so the count is only taken when certs is known non-NULL.", "ca...
null
wolfSSL__wolfssl__10172
wolfSSL/wolfssl
10,172
defect
1d363f3adceba9d1478230ede476a37b0dcdef24
0fc94843a2815abdf9fe8b4a7581131327e35c77
Fix pkcs12 parse issue
# Description When an ENCRYPTED_DATA ContentInfo is decrypted, the code allocates a heap buffer, calls DecryptContent() to decrypt in-place, then reassigns the data pointer to the decrypted buffer. However, all subsequent ASN.1 parsing operations continue using ci->dataSz (the original, larger ContentInfo size) as t...
diff --git a/tests/api/test_pkcs12.c b/tests/api/test_pkcs12.c index 62730b0f036..befc900a74f 100644 --- a/tests/api/test_pkcs12.c +++ b/tests/api/test_pkcs12.c @@ -272,6 +272,78 @@ int test_wc_d2i_PKCS12_oid_underflow(void) return EXPECT_RESULT(); } +/* Test that validates the fix for heap OOB read vulnerabili...
6
4
2
[{"id": "G0", "claim": "The test assigns wc_i2d_PKCS12()'s int return directly to word32 pkcs12DerSz, so a negative error code wraps to a large positive value, making the ExpectIntGE check unreliable and potentially passing a huge size into wc_d2i_PKCS12(); store the return in an int, assert it is >= 0, and only then c...
null
wolfSSL__wolfssl__10179
wolfSSL/wolfssl
10,179
defect
044a5f8b81770eff32d01375f1d7fbf7eee3ff5a
0bcc578e652959c70592eb17c68b07a55dc26dc9
Add dynamic key allocation support for ML-KEM
Introduce the `WOLFSSL_MLKEM_DYNAMIC_KEYS` option to allow dynamic allocation of private and public key buffers in the `MlKemKey` struct. This change enables right-sizing of buffers based on the actual ML-KEM level and eliminates unnecessary memory usage for encapsulate-only operations. This greatly reduces the dyna...
diff --git a/.github/workflows/pq-all.yml b/.github/workflows/pq-all.yml index 988618c07e4..64e48435149 100644 --- a/.github/workflows/pq-all.yml +++ b/.github/workflows/pq-all.yml @@ -36,6 +36,7 @@ jobs: '--enable-intelasm --enable-sp-asm --enable-all --enable-testcert --enable-dtls13 --enable-dtls-mtu --en...
2
2
2
[{"id": "G0", "claim": "In mlkemkey_alloc_priv's reallocate path, ForceZero uses the new k instead of the size the old buffer was allocated with, which would zero past the end of the heap buffer or leave private key material unzeroed if a future caller passes a different k; the reviewer asks to track the allocated size...
null
wolfSSL__wolfssl__10181
wolfSSL/wolfssl
10,181
defect
1d363f3adceba9d1478230ede476a37b0dcdef24
1bb7c64429059ee3edd87b50ca75440b5444a42d
Fix ReqCertFromX509 to check bounds
# Description In `ReqCertFromX509`, add a check on SKID size Fixes zd21567 # Testing Added `test_x509_ReqCertFromX509_skid_overflow` # Checklist - [x] added tests - [ ] updated/added doxygen - [ ] updated appropriate READMEs - [ ] Updated manual and documentation
diff --git a/src/x509.c b/src/x509.c index 46dfd38ed43..583a2eff406 100644 --- a/src/x509.c +++ b/src/x509.c @@ -11712,8 +11712,18 @@ WOLF_STACK_OF(WOLFSSL_X509_OBJECT)* wolfSSL_sk_X509_OBJECT_deep_copy( cert->basicConstSet = req->basicConstSet; #ifdef WOLFSSL_CERT_EXT if (req->subjKeyIdS...
6
4
3
[{"id": "G0", "claim": "The PR downgrades the version macros from 5.9.1/0x05009001 to 5.9.0/0x05009000, which is unexpected for a bounds-fix PR; the patch version should be bumped or the version changes omitted from this PR.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced...
null
wolfSSL__wolfssl__10186
wolfSSL/wolfssl
10,186
defect
abfff1ec2f6ff4f63e5d2de740579ffcc63ef2e3
ec250decdf4c984a9b747dbc45e1a1cb20a55628
Error out in case of unknown extensions in response message in TLS 1.3
Updated fix of initial PR in #9909, which was reverted in #9944 due to incorrectly failing on unsolicited extensions (GREASE) in the NewSessionTicket message. Fixes F-159.
diff --git a/src/tls.c b/src/tls.c index 18aad71d395..33f8ae654f8 100644 --- a/src/tls.c +++ b/src/tls.c @@ -7547,7 +7547,7 @@ int TLSX_Cookie_Use(const WOLFSSL* ssl, const byte* data, word16 len, byte* mac, #else -#define CKE_FREE_ALL(a, b) 0 +#define CKE_FREE_ALL(a, b) WC_DO_NOTHING #define CKE_GET_SIZE(a...
1
1
1
[{"id": "G0", "claim": "Add a test assertion verifying that the fatal unsupported_extension alert is actually written to the output buffer, since the SendAlert call could be deleted without any test detecting the change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wolfSSL__wolfssl__10192
wolfSSL/wolfssl
10,192
defect
abfff1ec2f6ff4f63e5d2de740579ffcc63ef2e3
b9b3a7c86aee357069bfbf4f18385cf365c17a03
Various fixes
# Description Fixes ZD#21457 (27, 30, 31) # Testing ``` ./configure --enable-pkcs12 && make && make check ./configure --host=aarch64-linux-gnu --enable-armasm --enable-mlkem && make && \ qemu-aarch64 -L /usr/aarch64-linux-gnu/ -E LD_LIBRARY_PATH=./src/.libs ./tests/.libs/unit.test ./configure --enable-...
diff --git a/tests/api/test_evp_pkey.c b/tests/api/test_evp_pkey.c index 6a1912ced94..adf381dcade 100644 --- a/tests/api/test_evp_pkey.c +++ b/tests/api/test_evp_pkey.c @@ -382,6 +382,76 @@ int test_wolfSSL_EVP_MD_hmac_signing(void) return EXPECT_RESULT(); } +/* Verify that EVP_DigestVerifyFinal rejects zero-le...
2
1
1
[{"id": "G0", "claim": "The new HMAC length check (siglen != hashLen) in wolfSSL_EVP_DigestVerifyFinal changes previous behavior by rejecting truncated HMAC tags; consider rejecting only unsafe lengths (siglen == 0, siglen > hashLen, siglen > INT_MAX) so callers using truncated tags keep working.", "category": "design"...
null
wolfSSL__wolfssl__10204
wolfSSL/wolfssl
10,204
defect
abfff1ec2f6ff4f63e5d2de740579ffcc63ef2e3
ad890a927cfc052de4d38acaf804f0ac354318f7
SetSuitesHashSigAlgo fix
# Description Fixes zd#21599 # Testing - `./configure --enable-opensslextra` - `make && make check`
diff --git a/src/internal.c b/src/internal.c index 267c75a5d65..769ba6764ca 100644 --- a/src/internal.c +++ b/src/internal.c @@ -29546,6 +29546,17 @@ int SetSuitesHashSigAlgo(Suites* suites, const char* list) break; } } + { + word32 needed = 2...
1
1
1
[{"id": "G0", "claim": "Add a regression test for the new bounds check: an overly long sigalgs list (including the RSA-PSS TLS 1.3 case that consumes 4 bytes per entry) should make wolfSSL_CTX_set1_sigalgs_list()/wolfSSL_set1_sigalgs_list() fail and not write past the end of suites->hashSigAlgo (size WOLFSSL_MAX_SIGALG...
null
wolfSSL__wolfssl__10206
wolfSSL/wolfssl
10,206
defect
178e10e42a2cd036ca772941b503acefe94cfc59
abf0a71b5b7dd86a2f987a5d6759bb38d70e0a49
Store the size of the allocated private key buffer for ML-KEM
Follow-up for #10179: when `WOLFSSL_MLKEM_DYNAMIC_KEYS` is enabled, store the size of the allocated private key buffer for later `ForceZero()` calls. This prevents potential erroneous corruption via a wrong `k` parameter.
diff --git a/wolfcrypt/src/wc_mlkem.c b/wolfcrypt/src/wc_mlkem.c index 0ef4870014d..17f1dc8a418 100644 --- a/wolfcrypt/src/wc_mlkem.c +++ b/wolfcrypt/src/wc_mlkem.c @@ -232,16 +232,18 @@ static int mlkemkey_get_k(const MlKemKey* key) */ static int mlkemkey_alloc_priv(MlKemKey* key, unsigned int k) { + word32 sz ...
1
1
0
[{"id": "G0", "claim": "Move the privAllocSz field up in struct MlKemKey so the struct does not increase in size on some platforms.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
wolfSSL__wolfssl__10219
wolfSSL/wolfssl
10,219
defect
9176185d668a5ce40894c4d1287fd09cc614e920
f55ecb51242664afdb691c00a39e04c4d8adf353
SE050: Fixes + NO_{RSA,ECDHE}_VERIFY options + simulator CI
# Description - Various fixes - SE050 simulator CI - SE050_RSA_NO_VERIFY - SE050_ECDSA_NO_VERIFY - SE050_ECDSA_NO_ECDHE zd#21221 and others
diff --git a/.github/workflows/se050-sim.yml b/.github/workflows/se050-sim.yml new file mode 100644 index 00000000000..0f7cb3de493 --- /dev/null +++ b/.github/workflows/se050-sim.yml @@ -0,0 +1,68 @@ +name: SE050 simulator test + +# START OF COMMON SECTION +on: + push: + branches: [ 'master', 'main', 'release/**' ]...
5
3
2
[{"id": "G0", "claim": "HAVE_ECC_VERIFY_HELPER is defined solely on WOLFSSL_SE050_NO_ECDSA_VERIFY without also requiring HAVE_ECC_VERIFY, which can lead to inconsistent compilation paths and potentially missing-symbol problems, and the condition should be changed to also require defined(HAVE_ECC_VERIFY).", "category": ...
null
wolfSSL__wolfssl__10222
wolfSSL/wolfssl
10,222
defect
9ed79a2815671eadc3407ebece27e72fca64fba1
4a13896b2ea6d6080d41cd32539193713e69935f
Report cert verify failure with MD5
# Description Added a verify-mode guard to the CTC_MD5wRSA case in HashForSignature(), mirroring the existing MD2 sign/verify precedent. MD5-signed certificates now return HASH_TYPE_E during chain verification. Fixes zd21597 # Testing Added `test_wolfSSL_CertManagerRejectMD5Cert` # Checklist - [x] ad...
diff --git a/.wolfssl_known_macro_extras b/.wolfssl_known_macro_extras index 0e58d4f11b0..bea09889c6e 100644 --- a/.wolfssl_known_macro_extras +++ b/.wolfssl_known_macro_extras @@ -682,6 +682,7 @@ WOLFSSL_ALLOW_CRIT_AIA WOLFSSL_ALLOW_CRIT_AKID WOLFSSL_ALLOW_CRIT_SKID WOLFSSL_ALLOW_MAX_FRAGMENT_ADJUST +WOLFSSL_ALLOW_...
2
2
1
[{"id": "G0", "claim": "Because Expect* macros do not stop execution, allocation or init failures (der == NULL, cm == NULL) let later calls pass NULL pointers into cert-gen and CertManager functions, which can crash; the calls should be gated on success or moved behind an early-exit/cleanup path.", "category": "correct...
null
wolfSSL__wolfssl__10224
wolfSSL/wolfssl
10,224
defect
9ed79a2815671eadc3407ebece27e72fca64fba1
2e5a0b76af93381a283520e9fe7bbd86abfd11ab
Various fixes in internal.c
# Description Size checking and code quality issues from report Fixes zd21594 # Credit Thanks to @cpsource for the issue report and review # Testing None # Checklist - [ ] added tests - [ ] updated/added doxygen - [ ] updated appropriate READMEs - [ ] Updated manual and documentation
diff --git a/src/internal.c b/src/internal.c index b9ad0d309a5..367211f3d3f 100644 --- a/src/internal.c +++ b/src/internal.c @@ -716,6 +716,8 @@ int IsDtlsNotSrtpMode(WOLFSSL* ssl) static void* myAlloc(void* opaque, unsigned int item, unsigned int size) { (void)opaque; + if (item != 0 && size ...
9
2
1
[{"id": "G0", "claim": "DtlsMsgStore handles DtlsMsgNew allocation failure silently: it neither logs a diagnostic nor sets any error state, so the failure is invisible to callers and undetectable by tests; it should log and set/return an error state (e.g. ssl->error = MEMORY_E).", "category": "correctness", "verdict": ...
null
wolfSSL__wolfssl__10232
wolfSSL/wolfssl
10,232
defect
b44d8c66d79a79d9b5eeb1389335127674cc880c
bfca39a97b5d93ca98a1d6cb87be4ad7f3a05ac1
20260415-confusing_globals
`src/ssl_load.c`, `wolfssl/ssl.h`, `tests/api.c`: rename `wolfSSL*PrivateKey_id()` to `wolfSSL*PrivateKey_Id_ex()`, and add missing `WOLF_PRIVATE_KEY_ID` gating. `src/ssl.c`, `src/ssl_sess.c`, `src/x509.c`, `wolfssl/internal.h`: rename `wolfssl_get_ex_new_index()` to `wolfssl_local_get_ex_new_index()`. tested wit...
diff --git a/src/ssl.c b/src/ssl.c index 58cd6701c02..0d722f4ae09 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -15086,7 +15086,7 @@ void crypto_ex_cb_free_data(void *obj, CRYPTO_EX_cb_ctx* cb_ctx, } /** - * get_ex_new_index is a helper function for the following + * wolfssl_local_get_ex_new_index is a helper function ...
1
1
1
[{"id": "G0", "claim": "Do not break public API compatibility by renaming the wolfSSL*PrivateKey_id() entry points (e.g. wolfSSL_use_PrivateKey_id to wolfSSL_use_PrivateKey_Id_ex), given the history behind these names.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
wolfSSL__wolfssl__4405
wolfSSL/wolfssl
4,405
defect
5e3f7d877839ece263739eb7a26577ea0063f6b6
4f3c55988ba04c45d749f9f43ccb096be1bd47cf
Fix for `set1_curves_list` ignoring last character
Fixes issue with `SSL_CTX_set1_curves_list` and `SSL_set1_curves_list` not checking the last character of the names variable provided.
diff --git a/src/ssl.c b/src/ssl.c index 26bfa28b734..9f1d5eff181 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -49189,7 +49189,7 @@ int wolfSSL_CTX_set1_curves_list(WOLFSSL_CTX* ctx, const char* names) if (names[idx] != ':' && names[idx] != '\0') continue; - len = idx - 1 - start; + l...
2
2
1
[{"id": "G0", "claim": "wolfSSL_CTX_set1_curves_list does not check its `ctx` and `names` parameters for NULL before dereferencing `names`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The pull request includes no unit test for set1_curves_list;...
null