Commit 2c34210
committed
Coverity scan fixes
DecodeRsaPssParams() assumed params is never NULL. Should never be
called with NULL but check saves a NULL dereference.
PrintObjectIdText() didn't check return of call to GetObjectId. 'oid'
will retain -1 value on error and work as normal on error return.
Cleaner to check for ASN_PARSE_E and handle - other error,
ASN_UNKNOWN_OID_E, is OK for printing.1 parent a595f10 commit 2c34210
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6146 | 6146 | | |
6147 | 6147 | | |
6148 | 6148 | | |
| 6149 | + | |
6149 | 6150 | | |
6150 | 6151 | | |
6151 | 6152 | | |
| |||
6160 | 6161 | | |
6161 | 6162 | | |
6162 | 6163 | | |
6163 | | - | |
| 6164 | + | |
| 6165 | + | |
| 6166 | + | |
| 6167 | + | |
6164 | 6168 | | |
6165 | 6169 | | |
6166 | 6170 | | |
| |||
6252 | 6256 | | |
6253 | 6257 | | |
6254 | 6258 | | |
| 6259 | + | |
| 6260 | + | |
| 6261 | + | |
| 6262 | + | |
6255 | 6263 | | |
6256 | 6264 | | |
6257 | 6265 | | |
| |||
37228 | 37236 | | |
37229 | 37237 | | |
37230 | 37238 | | |
37231 | | - | |
37232 | | - | |
| 37239 | + | |
| 37240 | + | |
| 37241 | + | |
| 37242 | + | |
| 37243 | + | |
37233 | 37244 | | |
37234 | 37245 | | |
37235 | 37246 | | |
| |||
0 commit comments