-
Notifications
You must be signed in to change notification settings - Fork 580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverity #3472
Merged
Merged
Coverity #3472
Changes from all commits
Commits
Show all changes
114 commits
Select commit
Hold shift + click to select a range
777fe76
cachedb_dynamodb: Initialize 'con' pointer and remove unnecessary if …
oanatitoc adb1296
cachedb_dynamodb: Fix some resource leaks
oanatitoc a1b9210
blacklists.c: Fix null pointer dereferences
oanatitoc d58c173
db: Fix possible buffer overflow
oanatitoc 1a43c56
dprint.c: Fix memory leak
oanatitoc 6159df1
evi: Treat negative return value
oanatitoc 0206bbe
evi: Fix 'evi_remove_expired_subs' function flow
oanatitoc bb6bb87
lib/reg/common.h: Fix time_t truncation issue in log output
oanatitoc 755f80d
mem: Fix incomplete read handling
oanatitoc a53e789
mem: Add missing file descriptor close
oanatitoc ed90a5d
aaa_diameter: Remove redundant assigment
oanatitoc d8bcc14
aaa_diameter: Fix memory leak
oanatitoc e44cf7e
mem: Fix null pointer dereference
oanatitoc 603e40a
aaa_diameter: Fix out-of-bounds read
oanatitoc 3ce2ccf
aaa_diameter: Fix incorrect null check
oanatitoc be12ccf
aaa_radius: Check pointer result
oanatitoc 45bf0b1
acc: Cast time_t to appropriate types
oanatitoc 3d46dfc
acc: Add coverity tag
oanatitoc fe3fc86
auth_aka: Fix null dereference issue
oanatitoc 641d928
auth_aka: Fix incorrect sizeof argument
oanatitoc a89dc7a
auth_jwt: Add null check before dereferencing
oanatitoc 9cfec5c
b2b_entities: Add proper null checks
oanatitoc 2e875be
b2b_entities: Add tag coverity
oanatitoc 459bc62
b2b_entitites: Fix potential null pointer dereference
oanatitoc cd151c7
b2b_logic: Remove unnecessary if block
oanatitoc ae478cb
b2b_logic: Initialize callid to prevent usage of uninitialized variable
oanatitoc 171ae7e
b2b_logic: Fix cast from time_t to int error
oanatitoc 074faf9
b2b_logic: Add coverity tag
oanatitoc 0ca7a9e
b2b_logic: Add null check for entity
oanatitoc 1de7a40
acc: Fix time_t cast
oanatitoc 4c0564b
b2b_logic: Prevent null dereferencing
oanatitoc 1e2c348
b2b_logic: Add null checks
oanatitoc 0988f5d
b2b_logic: Fix possible copy-paste error
oanatitoc e67887a
b2b_logic: Ensure signed comparison
oanatitoc 1d516d3
b2b_sdp_demux: Cast time_t to int
oanatitoc 97434d9
b2b_sdp_demux: Check 'str2int' return value
oanatitoc a474aad
cachedb_mongodb: Check return value
oanatitoc 841c81e
cachedb_mongodb: Cast time_t to int
oanatitoc 8932a1f
cachedb_sgl: Add coverity adnotation
oanatitoc bbdf66f
cachedb_sql: Cast time_t to int
oanatitoc 42a6e94
call_center: Cast time_t to int
oanatitoc 7f4e23a
carrierroute: Add return to avoid null pointer dereferencing
oanatitoc 48976ac
carrierroute: Add null check
oanatitoc f469cfc
carrierroute: Fix pointer comparison with 0
oanatitoc 424638f
cfgutils: Add null check
oanatitoc a343bc8
clusterer: Cast time_t to int
oanatitoc cc6a609
clusterer: Add coverity tags
oanatitoc b2ee5c9
acc: Add coverity tags
oanatitoc 4c8fc99
clusterer: Fix unterminated case
oanatitoc 72dad82
clusterer: Add Null check to avoid Null dereferences
oanatitoc 56b218b
compression: Fix potential copy-paste error
oanatitoc 8cfb66b
compression: Add and fix null checks
oanatitoc 55243c9
compression: Fix sign extension issue
oanatitoc 6fd0454
cpl_c: Cast time_t to unsigned int
oanatitoc 9733f60
cpl_c: Add coverity tags
oanatitoc 1e4bd24
db_http: Fix copy-paste error
oanatitoc aeb58cc
db_http: Check return value
oanatitoc 9e8b505
db_perlvdb: Cast time_t
oanatitoc 6fdc967
db_sqlite: Add null check
oanatitoc 9138313
db_http: Fix compile error
oanatitoc bbb13de
db_text: Add null check
oanatitoc ab9d70a
db_text: Add coverity tag
oanatitoc 56b9b11
db_text: Cast time_t
oanatitoc 5088dfe
dialog: Cast time_t
oanatitoc bd0989c
dialog: Fix potential copy-paste error
oanatitoc 33f655c
dialog: Add null check
oanatitoc 3f04771
dispatcher: Check return value and remove redundant assign
oanatitoc d1ebc22
dns_cache: Fix null pointer dereference
oanatitoc cb86f64
db_sqlite: Remove redundand assign
oanatitoc 1cae53a
dialog: Fix the use of an uninitialized variable
oanatitoc 9158f41
emergency: Add null check
oanatitoc 902a142
emergency: Jump to error in case of a null value
oanatitoc 9aaa0b3
emergency: Add null check before dereferencing pointer
oanatitoc a527811
emergency: Cast time_t
oanatitoc 2c6eaf8
emergency: Add null check before dereferencing
oanatitoc 884e537
emergency: Fix resource leak
oanatitoc 12c95f8
emergency: Check return code
oanatitoc 37aab40
event_kafka: Dereference after null check and add coverity tag
oanatitoc b198bfe
event_rabbitmq: Initialize tmp fields and dereference rmqp pointer af…
oanatitoc 6b6c045
event_stream: Add '> 0' check in case buf.len is negative
oanatitoc d68659c
emergency: Fix compile errrors
oanatitoc f8bb0d1
fraud_detection: Add coverity tag and cast time_t
oanatitoc 89063ac
group: Add coverity tag and check null pointer
oanatitoc 3664fed
httpd: Treat negative return of ftell function
oanatitoc ebfeb66
identity: Add null check
oanatitoc 1776ace
identity: Init value to prevent using uninitialized value
oanatitoc e7c2ffa
imc: Fix if condition
oanatitoc e4fc135
imc: Fix null pointer dereference
oanatitoc 6b99355
jabber: Fix null pointer dereference
oanatitoc 607d178
jabber: Check null pointer
oanatitoc bcd461f
ldam: Add null check
oanatitoc 7eb84c8
media_exchange: Fix null pointer dereference
oanatitoc d4f5374
mangler & maxfwd: Add coverity tag
oanatitoc 1ae87bf
media_exchange: Fix use of uninitialized value
oanatitoc 647d38e
mediaproxy: Add null check
oanatitoc 0a48fdc
mi_fifo: Fix storage leak
oanatitoc aeb89f6
mi_script: Check return code
oanatitoc bbee136
mid_registrar: Fix out-of-bounds access
oanatitoc 4475ae3
mid_registrar: Cast time_t
oanatitoc 1d05904
mid_registrar: Fix null pointer dereference
oanatitoc 8e10dd7
mqueue: Handle return value errors
oanatitoc 2c98b69
msilo: Cast time_t
oanatitoc 288a987
msrp_gateway: Add coverity tag
oanatitoc bc50d4d
msrp_ua: Cast time_t
oanatitoc 149d2e2
nat_traversal: Check return value
oanatitoc a9249ad
nat_traversal: Cast time_t
oanatitoc b7fdd94
nathelper: Cast time_t
oanatitoc 3b7b736
Coverity PR: Fix some minor issues or add improvements
liviuchircu 2c2b399
clusterer: fallback, not break, on no cluster_id
razvancrainea ee842d6
Revert "db_http: Fix copy-paste error"
razvancrainea fc9a9e4
db_http: suppress Coverity warning
razvancrainea e7d12e6
db_http,emergency: complete 9138313995
razvancrainea a8ac11e
imc: proper handling when no rooms are available
razvancrainea ca65023
jabber: proper check of NULL return
razvancrainea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,17 +44,18 @@ int extract_pub_key_from_cert(struct sip_msg* _msg, str* cert, | |
|
||
/* TODO - if x5c just add beggining & end */ | ||
|
||
if (cert == NULL) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Inconsistent tabs |
||
LM_ERR("Failed to parse certificate\n"); | ||
return -1; | ||
} | ||
|
||
bio = BIO_new_mem_buf((void*)cert->s,cert->len); | ||
if (!bio) { | ||
LM_ERR("Unable to create BIO buf\n"); | ||
return -1; | ||
} | ||
|
||
x509cert = PEM_read_bio_X509(bio, NULL, 0, NULL); | ||
if (cert == NULL) { | ||
LM_ERR("Failed to parse certificate\n"); | ||
goto err_free; | ||
} | ||
|
||
if ((pubkey = X509_get_pubkey(x509cert)) == NULL) { | ||
LM_ERR("Failed to get pub key from certificate\n"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra tab is required
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for pointing that out!