Closed shenjunjiekoda closed 5 months ago
@skcho has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@shenjunjiekoda has updated the pull request. You must reimport the pull request before landing.
@skcho has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
Hello, @shenjunjiekoda Thank you for the contribution! The initializer_list is one of the hardest parts to understand/handle, esp. when an implicit constructor is invoked in it. Anyhow, the PR looks good overall. I am surprised that you understood how Inferbo works and added new models. Amazing!
@shenjunjiekoda has updated the pull request. You must reimport the pull request before landing.
@shenjunjiekoda has updated the pull request. You must reimport the pull request before landing.
@shenjunjiekoda has updated the pull request. You must reimport the pull request before landing.
@shenjunjiekoda has updated the pull request. You must reimport the pull request before landing.
@shenjunjiekoda has updated the pull request. You must reimport the pull request before landing.
Hello @skcho!
Thank you very much for the thorough review and valuable suggestions on my PR. As someone new to OCaml and Infer, I greatly appreciate your guidance and have learned a lot from it. I have made the necessary revisions based on your feedback and strive to continue improving my code.
Thanks again for your patience and support!
Best regards, shenjunjiekoda
@skcho has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@shenjunjiekoda has updated the pull request. You must reimport the pull request before landing.
@skcho merged this pull request in facebook/infer@d7efa0991dc8e25b14dec041d5a124e1ef069ecb.
Introduction
This PR introduces supplements to the modeling of
std::vector
operations in InferBO Model, focusing particularly on theinsert
method andinitializer_list
related methods.Details of Changes
infer/src/bufferoverrun/bufferOverrunModels.ml
for thestd::vector::insert
3 overload methods includinginitializer_list
is used as an argument , constructor forstd::vector
usinginitializer_list
as an argument, constructor forinitializer_list
.infer/tests/codetoanalyze/cpp/bufferoverrun/vector.cpp
Thank you for considering this update.