[1/4] Bitmap for L2 storage in MP mode #2563
Conversation
Signed-off-by: ApostaC <yihua98@uchicago.edu>
Summary of ChangesHello @ApostaC, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a fundamental C++ Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a Bitmap class to support L2 storage in multiprocess mode, complete with C++ implementation, pybind11 bindings, and unit tests. A critical integer overflow vulnerability was identified in the Bitmap constructor's memory allocation logic, which can lead to out-of-bounds memory access and denial-of-service conditions for large bitmap sizes. Additionally, the review suggests improvements for C++ maintainability and performance, including refactoring complex functions and optimizing a string conversion method, and strengthening assertions in the Python tests.
Signed-off-by: ApostaC <yihua98@uchicago.edu>
Signed-off-by: Yihua Cheng <yihua98@uchicago.edu>
Signed-off-by: ApostaC <yihua98@uchicago.edu>
KuntaiDu
left a comment
There was a problem hiding this comment.
Code is straightforward for me.
|
Going to merge this as we discussed offline. |
* [add] bitmap module Signed-off-by: ApostaC <yihua98@uchicago.edu> * adjust the cpp implementation and add pyi tests Signed-off-by: ApostaC <yihua98@uchicago.edu>
* [add] bitmap module Signed-off-by: ApostaC <yihua98@uchicago.edu> * adjust the cpp implementation and add pyi tests Signed-off-by: ApostaC <yihua98@uchicago.edu>
* [add] bitmap module Signed-off-by: ApostaC <yihua98@uchicago.edu> * adjust the cpp implementation and add pyi tests Signed-off-by: ApostaC <yihua98@uchicago.edu> Signed-off-by: Ofer Kiselov Nahman <ofer.kiselovnahman@weka.io>
* [add] bitmap module Signed-off-by: ApostaC <yihua98@uchicago.edu> * adjust the cpp implementation and add pyi tests Signed-off-by: ApostaC <yihua98@uchicago.edu>
* [add] bitmap module Signed-off-by: ApostaC <yihua98@uchicago.edu> * adjust the cpp implementation and add pyi tests Signed-off-by: ApostaC <yihua98@uchicago.edu>
* [add] bitmap module Signed-off-by: ApostaC <yihua98@uchicago.edu> * adjust the cpp implementation and add pyi tests Signed-off-by: ApostaC <yihua98@uchicago.edu> Signed-off-by: shaoxiawjc <wjc2800@163.com>
* [add] bitmap module Signed-off-by: ApostaC <yihua98@uchicago.edu> * adjust the cpp implementation and add pyi tests Signed-off-by: ApostaC <yihua98@uchicago.edu> Signed-off-by: Aaron Wu <aaron.wu@dell.com>
What this PR does / why we need it:
Part of #2562
Special notes for your reviewers:
If applicable: