grpc / grpc/grpc-node

[Question] how to catch Integer overflow in grpc server ?

Open
#947 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
716
Avg merge
2d 3h
Merged PRs (30d)
10

Description

I defined a field `uint32 userId` in pb3,so `userId` should be between 0 and 4294967295.

But when grpc client pass an overflow-int like 4294967297 to grpc server, the server received `userId: 1` without any exception.

How to catch something like this?

A solution to solve this will be greatly appreciated!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.