Commit 73887a1
committed
Remove wrong null check
1. #552 fix corrected — Removed out == NULL from the guard; outSz == NULL check remains
2. Copilot review: overflow guard in wolfTPM2_UnloadHandles — Added pre-loop handleStart + handleCount overflow check
3. Copilot review: BER indefinite-length — Reject bytes == 0 in TPM2_ASN_GetLength_ex
4. Copilot review: bounds check before X.509 version read — Added len <= 0 || idx >= inputSz check before accessing input[idx]
5. Build fix — Cast inputSz to word32 for sign-compare warning1 parent 4d1ec8a commit 73887a1
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
187 | 188 | | |
188 | 189 | | |
189 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
190 | 197 | | |
191 | 198 | | |
192 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3277 | 3277 | | |
3278 | 3278 | | |
3279 | 3279 | | |
3280 | | - | |
| 3280 | + | |
3281 | 3281 | | |
3282 | 3282 | | |
3283 | 3283 | | |
| |||
6295 | 6295 | | |
6296 | 6296 | | |
6297 | 6297 | | |
| 6298 | + | |
| 6299 | + | |
| 6300 | + | |
6298 | 6301 | | |
6299 | 6302 | | |
6300 | 6303 | | |
| |||
0 commit comments