commit | c591f88faed84ac9d69507a35f5b1bfbfb8ab74a | [log] [tgz] |
---|---|---|
author | Keun Soo Yim <yim@google.com> | Sat Jan 07 17:53:44 2017 -0800 |
committer | Keun Soo Yim <yim@google.com> | Wed Jan 11 15:31:48 2017 -0800 |
tree | 8d2d03d058ec63385ccbb41dea53e2a97cf63968 | |
parent | 15336c44b747b2dcc1dc29fb4dc17b65d6c0fe26 [diff] |
add checks to avoid potential buffer overflows and prevent exceptions number_platform_modes variable is from another module (e.g., eModule->get_number_of_platform_modes(mModule)) and thus can be a big number. If a big number is used as the size of new operation, it can cause an exception as is. Test: mma Change-Id: I6cf6027804be980ad39c80a1571b284efabce7e8