feat(c++): Forced the limits of max size#3422
feat(c++): Forced the limits of max size#3422garvittsingla wants to merge 6 commits intoapache:mainfrom
Conversation
|
test are failing , please help me , where am I wrong? |
Please do not ask such things before analyze and try to address the issue. If you have ever seen the error log, the fix is obvious: |
|
@chaokunyang My apologies |
|
Please read the https://github.com/apache/fory/blob/main/CONTRIBUTING.md and https://github.com/apache/fory/blob/main/.github/workflows/ci.yml to see how it lint the code |
|
@chaokunyang can you give a look at cpp implementation, while running formatter , some java and swift files are getting changed , maybe there is something wrong in my implementation which breaks |
Hii @garvittsingla |
Fixes #3408
This change improves protocol-aware safety for C++ deserialization by preventing excessive memory usage from malicious or malformed payloads.
Related: cpp/fory/serialization/config.h:31, collection_serializer.h:396, collection_serializer.h:719, map_serializer.h:541
Done all the things as mentioned in the issue and enforced a length check