Chromium Code Reviews
DescriptionAuto-generate null checks for pointer arguemnts in the passthrough cmd decoder.
Argument validation wasn't added previously because it was mostly for
enum checks. These null checks prevent issues where the buffer is not
big enough and null was returned when getting immediate data.
BUG=602737
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Review-Url: https://codereview.chromium.org/2692573002
Cr-Commit-Position: refs/heads/master@{#449979}
Committed: https://chromium.googlesource.com/chromium/src/+/7b0ca8add9594566989b917f50fb948556125698
Patch Set 1 #
Total comments: 2
Patch Set 2 : use nullptr instead of NULL #
Messages
Total messages: 16 (11 generated)
|
||||||||||||||||||||||||||||