Skip to content

curl_sasl.c PVS Studio warnings #745

@bagder

Description

@bagder

@alagoutte run PVS Studio on the curl code and we got two warnings on the curl_sasl.c code that I would like you to have a look at @captain-caveman2k:

V537 Consider reviewing the correctness of 'SASL_OAUTH2' item's usage. curl_sasl.c 332

That's puzzling to me, but I gave the code a gance and I couldn't immediately see what the tool actually refers to here! 😮

V595 The 'mech' pointer was utilized before it was verified against nullptr. Check lines: 376, 381. curl_sasl.c 376

To me, this looks like it could potentially be correct and possibly warrants an extra check in the code or so.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions