History

Init the string value and add protection for WelsStrcat()

Haibo Zhu committed 11 years ago

Commit e7e3b4f1 parent b37cda23 files · +9 −7Browse files

Showing the changes to codec/common/src/utils.cpp (1 of 3 files). Show all

Unified · Split

codec/common/src/utils.cpp+1−1
@@ -50,7 +50,7 @@ float WelsCalcPsnr (const void* kpTarPic, · 49 unmodified lines
5050
5151 void WelsLog (SLogContext* logCtx, int32_t iLevel, const char* kpFmt, ...) {
5252 va_list vl;
53− char pTraceTag[MAX_LOG_SIZE];
53+ char pTraceTag[MAX_LOG_SIZE] = {0};
5454 switch (iLevel) {
5555 case WELS_LOG_ERROR:
5656 WelsSnprintf (pTraceTag, MAX_LOG_SIZE, "[OpenH264] this = 0x%p, Error:", logCtx->pCodecInstance);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t