diff --git a/.github/gbs.conf b/.github/gbs.conf index 4bcfa0b298..64e073a101 100644 --- a/.github/gbs.conf +++ b/.github/gbs.conf @@ -22,13 +22,13 @@ repos = repo.70base, repo.70emul buildroot = ~/GBS-ROOT/t70emul [repo.70base] -url=http://download.tizen.org/snapshots/tizen/base/latest/repos/standard/packages/ +url=http://download.tizen.org/snapshots/TIZEN/Tizen-7.0/Tizen-7.0-Base/reference/repos/standard/packages/ [repo.70std] -url=http://download.tizen.org/snapshots/tizen/unified/latest/repos/standard/packages/ +url=http://download.tizen.org/snapshots/TIZEN/Tizen-7.0/Tizen-7.0-Unified/reference/repos/standard/packages/ [repo.70emul] -url=http://download.tizen.org/snapshots/tizen/unified/latest/repos/emulator/packages/ +url=http://download.tizen.org/snapshots/TIZEN/Tizen-7.0/Tizen-7.0-Unified/reference/repos/emulator/packages/ ############## Tizen 6.5 ############## [profile.t65std] diff --git a/deps/node/src/memory_tracker-inl.h b/deps/node/src/memory_tracker-inl.h index 4167064847..58cd94ee35 100644 --- a/deps/node/src/memory_tracker-inl.h +++ b/deps/node/src/memory_tracker-inl.h @@ -178,7 +178,9 @@ void MemoryTracker::TrackField(const char* edge_name, const T& value, const char* node_name) { // For numbers, creating new nodes is not worth the overhead. - CurrentNode()->size_ += sizeof(T); + if (CurrentNode() != nullptr) { + CurrentNode()->size_ += sizeof(T); + } } template diff --git a/src/lwnode/lwnode-loader.cc b/src/lwnode/lwnode-loader.cc index 5eaedbf0e0..505b5ea8d1 100644 --- a/src/lwnode/lwnode-loader.cc +++ b/src/lwnode/lwnode-loader.cc @@ -65,7 +65,12 @@ bool convertUTF8ToUTF16le(char** buffer, size_t utf16Size = utf16.size() * 2; - *buffer = (char*)allocateStringBuffer(utf16Size + 1); + void* allocatedStringBuffer = allocateStringBuffer(utf16Size + 1); + if (allocatedStringBuffer == NULL) { + return false; + } + + *buffer = static_cast(allocatedStringBuffer); memcpy(*buffer, utf16.data(), utf16Size); (*buffer)[utf16Size] = '\0';