Skip to content
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

BugFix: fix coredump of trpc::config::GetInt64() with overflowed int32 #89

Conversation

liucf3995
Copy link
Contributor

issue: trpc::config::GetInt64() with json may coredump when real value is greater than INT32_MAX.
cause: asInt() of json-cpp with overflowed interge will assert failure.
fix: change asInt() to asInt64().

issue: trpc::config::GetInt64() with json may coredump when real value is greater than INT32_MAX.
cause: asInt() of json-cpp with overflowed interge will assert failure.
fix: change asInt() to asInt64().
Copy link

github-actions bot commented Dec 8, 2023

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@liucf3995
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

liuzengh added a commit to trpc-group/cla-database that referenced this pull request Dec 8, 2023
@liucf3995
Copy link
Contributor Author

close #88

Copy link

codecov bot commented Dec 8, 2023

Codecov Report

Merging #89 (737cf13) into main (f99f77d) will decrease coverage by 0.05862%.
Report is 1 commits behind head on main.
The diff coverage is 100.00000%.

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##                main         #89         +/-   ##
===================================================
- Coverage   81.79932%   81.74070%   -0.05862%     
===================================================
  Files            855         855                 
  Lines          33746       33791         +45     
===================================================
+ Hits           27604       27621         +17     
- Misses          6142        6170         +28     
Files Coverage Δ
trpc/config/trpc_conf_compatible.cc 22.90503% <100.00000%> (+0.55865%) ⬆️

... and 19 files with indirect coverage changes

@helloopenworld helloopenworld merged commit 1742ddc into trpc-group:main Dec 8, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants