void TestGetRulebasedKeypressCountForTestingCallback(int32_t* res_out,
                                                     int32_t response) {
  *res_out = response;
}

The product reads data past the end, or before the beginning, of the intended buffer.