From: sergey ignatov Date: Fri, 5 May 2017 15:12:07 +0000 (+0300) Subject: Fixed issue #11383 (#11385) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0a850b785d73740add815329409183de23a2c35;p=platform%2Fupstream%2Fcoreclr.git Fixed issue #11383 (#11385) --- diff --git a/src/scripts/genXplatLttng.py b/src/scripts/genXplatLttng.py index bacf034868..6dd60b0a0b 100644 --- a/src/scripts/genXplatLttng.py +++ b/src/scripts/genXplatLttng.py @@ -593,6 +593,7 @@ bool ResizeBuffer(char *&buffer, int& size, int currLen, int newSize, bool &fixe bool WriteToBuffer(const BYTE *src, int len, char *&buffer, int& offset, int& size, bool &fixedBuffer) { + if (!src) return true; if (offset + len) { if (!ResizeBuffer(buffer, size, offset, size + len, fixedBuffer)) @@ -606,6 +607,7 @@ bool WriteToBuffer(const BYTE *src, int len, char *&buffer, int& offset, int& si bool WriteToBuffer(PCWSTR str, char *&buffer, int& offset, int& size, bool &fixedBuffer) { + if (!str) return true; int byteCount = (PAL_wcslen(str) + 1) * sizeof(*str); if (offset + byteCount) @@ -621,6 +623,7 @@ bool WriteToBuffer(PCWSTR str, char *&buffer, int& offset, int& size, bool &fixe bool WriteToBuffer(const char *str, char *&buffer, int& offset, int& size, bool &fixedBuffer) { + if (!str) return true; int len = strlen(str) + 1; if (offset + len) { @@ -762,4 +765,4 @@ def main(argv): if __name__ == '__main__': return_code = main(sys.argv[1:]) - sys.exit(return_code) \ No newline at end of file + sys.exit(return_code) diff --git a/src/vm/eventtrace.cpp b/src/vm/eventtrace.cpp index b3ee17e3be..70ea18fa2f 100644 --- a/src/vm/eventtrace.cpp +++ b/src/vm/eventtrace.cpp @@ -6760,9 +6760,9 @@ VOID ETW::MethodLog::SendHelperEvent(ULONGLONG ullHelperStartAddress, ULONG ulHe ulHelperSize, 0, methodFlags, - NULL, + NULL, pHelperName, - NULL, + NULL, GetClrInstanceId()); } }