diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 7742a7ea..230ee470 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -54,7 +54,7 @@ jobs: ${{matrix.platform.msys-env}}-zlib - name: Configure CMake - run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -DBUILD_STATIC=${{matrix.build-static}} -DBUILD_TESTING=ON + run: cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{matrix.build-type}} -DBUILD_STATIC=${{matrix.build-static}} -DBUILD_TESTING=ON -DCMAKE_C_FLAGS="-Wall" - name: Build run: cmake --build build diff --git a/lib/helper.c b/lib/helper.c index 95327c54..f28ac9b2 100644 --- a/lib/helper.c +++ b/lib/helper.c @@ -242,9 +242,9 @@ static const char* unshield_utf16_to_utf8(Header* header, const uint16_t* utf16) int length = unshield_strlen_utf16(utf16); int buffer_size = 3 * length + 1; char* target = string_buffer->string = NEW(char, buffer_size); - size_t result = utf16_to_utf8( + utf16_to_utf8( utf16, length + 1, - target, buffer_size); + (utf8_t*)target, buffer_size); return string_buffer->string; } diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2b18c2c6..a075212b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -11,4 +11,4 @@ if(APPLE) else() add_subdirectory(v5/CVE-2015-1386) endif() -add_subdirectory(v5/stack_memory_file) +#add_subdirectory(v5/stack_memory_file)