MCPcopy Create free account
hub / github.com/cisco/openh264 / DecodeParseCrashAPI

Class DecodeParseCrashAPI

test/api/decode_api_test.cpp:1085–1110  ·  view source on GitHub ↗

Test parseonly crash cases

Source from the content-addressed store, hash-verified

1083
1084//Test parseonly crash cases
1085class DecodeParseCrashAPI : public DecodeParseAPI {
1086 public:
1087 DecodeParseCrashAPI() {
1088 }
1089 void SetUp() {
1090 DecodeParseAPI::SetUp();
1091 iWidth_ = 1280;
1092 iHeight_ = 720;
1093
1094 ucBuf_ = NULL;
1095 ucBuf_ = new unsigned char[1000000];
1096 ASSERT_TRUE (ucBuf_ != NULL);
1097
1098 }
1099 void TearDown() {
1100 DecodeParseAPI::TearDown();
1101 if (NULL != ucBuf_) {
1102 delete[] ucBuf_;
1103 ucBuf_ = NULL;
1104 }
1105 ASSERT_TRUE (ucBuf_ == NULL);
1106 }
1107
1108 protected:
1109 unsigned char* ucBuf_;
1110};
1111
1112//#define DEBUG_FILE_SAVE_PARSE_CRA1
1113TEST_F (DecodeParseCrashAPI, ParseOnlyCrash_General) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected