-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fix: Avoided dereferencing NULL pointer #34836
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Ald392 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
@Ald392: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
cb7a5cd
to
c5d4962
Compare
@@ -23,6 +24,9 @@ char* | |||
IndexBuilderSetSimdType(const char* value) { | |||
auto real_type = milvus::config::KnowhereSetSimdType(value); | |||
char* ret = reinterpret_cast<char*>(malloc(real_type.length() + 1)); | |||
if (ret == nullptr) { | |||
throw std::runtime_error("Error: Memory allocation failed"); |
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.
Better to use "AssertInfo" instead.
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.
Thanks for the suggestion. Currently working on it.
/ok-to-test |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #34836 +/- ##
========================================
Coverage 80.95% 80.96%
========================================
Files 1185 1180 -5
Lines 142758 143433 +675
========================================
+ Hits 115569 116129 +560
- Misses 22782 22883 +101
- Partials 4407 4421 +14
|
/retest |
47a8075
to
cc76e5e
Compare
@Ald392 E2e jenkins job failed, comment |
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.
/lgtm
/run-cpu-e2e |
rerun ut |
/retest |
issue : milvus-io#34835 Signed-off-by: Ald392 <imagesai32@gmail.com>
@longjiquan The Mac code checker is failing continually for all other PRs as well and it needs a fix. So can you provide any suggestion on how we should proceed ? |
/lgtm |
issue : milvus-io#34835 Signed-off-by: Ald392 <imagesai32@gmail.com> Signed-off-by: Sumit Dubey <sumit.dubey2@ibm.com>
issue : #34835