Test parseonly crash cases
| 1083 | |
| 1084 | //Test parseonly crash cases |
| 1085 | class 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 |
| 1113 | TEST_F (DecodeParseCrashAPI, ParseOnlyCrash_General) { |
nothing calls this directly
no outgoing calls
no test coverage detected