Todd Lipcon has posted comments on this change. ( http://gerrit.cloudera.org:8080/9355 )
Change subject: KUDU-2305: Fix local variable usage to handle 2GB messages ...................................................................... Patch Set 3: Code-Review+1 (1 comment) Would be good for Dan B to take a look at this as our resident int overflow detective http://gerrit.cloudera.org:8080/#/c/9355/3/src/kudu/rpc/serialization.cc File src/kudu/rpc/serialization.cc: http://gerrit.cloudera.org:8080/#/c/9355/3/src/kudu/rpc/serialization.cc@61 PS3, Line 61: static_cast<int64_t>(additional_size) > Yes, I think only the first cast is necessary to fix the ASAN issue. This s could go either way I guess. I often get confused by type promotion rules like this so I'm not against being explicit. -- To view, visit http://gerrit.cloudera.org:8080/9355 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I8e468099b16f7eb55de71b753acae8f57d18287c Gerrit-Change-Number: 9355 Gerrit-PatchSet: 3 Gerrit-Owner: Joe McDonnell <joemcdonn...@cloudera.com> Gerrit-Reviewer: Dan Burkert <d...@cloudera.com> Gerrit-Reviewer: Joe McDonnell <joemcdonn...@cloudera.com> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Michael Ho <k...@cloudera.com> Gerrit-Reviewer: Tidy Bot Gerrit-Reviewer: Todd Lipcon <t...@apache.org> Gerrit-Comment-Date: Tue, 20 Feb 2018 23:10:25 +0000 Gerrit-HasComments: Yes