Commit 0880f9e
committed
Fixes Applied
1. Sign conversion warning fix (pwdbased.c)
- Cast hLen to (word32) for ForceZero call
2. NULL checks before ForceZero (Copilot feedback)
hpke.c (6 locations):
- wc_HpkeEncap: NULL checks for dh and kemContext
- wc_HpkeSetupBaseSender: NULL check for sharedSecret
- wc_HpkeSealBase: NULL check for context
- wc_HpkeDecap: NULL check for dh
- wc_HpkeSetupBaseReceiver: NULL check for sharedSecret
- wc_HpkeOpenBase: NULL check for context
ecc.c (2 locations):
- wc_ecc_encrypt_ex: NULL checks for sharedSecret and keys
- wc_ecc_decrypt: NULL checks for sharedSecret and keys
pwdbased.c (1 location):
- wc_PBKDF2_ex: NULL check for buffer
Not addressed (not real issues):
- The INT_MAX overflow comments for evp.c and pkcs12.c are theoretical - digest sizes are always small (32-64 bytes), never close to INT_MAX
Arduino CI failure:
- Not related to this PR - it's a pre-existing issue with the external WiFiNINA library1 parent 1461aaf commit 0880f9e
3 files changed
Lines changed: 36 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14484 | 14484 | | |
14485 | 14485 | | |
14486 | 14486 | | |
14487 | | - | |
14488 | | - | |
| 14487 | + | |
| 14488 | + | |
| 14489 | + | |
| 14490 | + | |
| 14491 | + | |
| 14492 | + | |
14489 | 14493 | | |
14490 | 14494 | | |
14491 | 14495 | | |
| |||
14884 | 14888 | | |
14885 | 14889 | | |
14886 | 14890 | | |
14887 | | - | |
14888 | | - | |
| 14891 | + | |
| 14892 | + | |
| 14893 | + | |
| 14894 | + | |
| 14895 | + | |
| 14896 | + | |
14889 | 14897 | | |
14890 | 14898 | | |
14891 | 14899 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
799 | | - | |
800 | | - | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
801 | 805 | | |
802 | 806 | | |
803 | 807 | | |
| |||
829 | 833 | | |
830 | 834 | | |
831 | 835 | | |
832 | | - | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
833 | 839 | | |
834 | 840 | | |
835 | 841 | | |
| |||
917 | 923 | | |
918 | 924 | | |
919 | 925 | | |
920 | | - | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
921 | 929 | | |
922 | 930 | | |
923 | 931 | | |
| |||
1036 | 1044 | | |
1037 | 1045 | | |
1038 | 1046 | | |
1039 | | - | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1040 | 1050 | | |
1041 | 1051 | | |
1042 | 1052 | | |
| |||
1063 | 1073 | | |
1064 | 1074 | | |
1065 | 1075 | | |
1066 | | - | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1067 | 1079 | | |
1068 | 1080 | | |
1069 | 1081 | | |
| |||
1150 | 1162 | | |
1151 | 1163 | | |
1152 | 1164 | | |
1153 | | - | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
1154 | 1168 | | |
1155 | 1169 | | |
1156 | 1170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
300 | 302 | | |
301 | 303 | | |
302 | 304 | | |
| |||
0 commit comments