Fix heap-buffer-overflow 04/239704/1
authorHeeyong Song <heeyong.song@samsung.com>
Wed, 29 Jul 2020 06:07:42 +0000 (15:07 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Wed, 29 Jul 2020 06:07:42 +0000 (15:07 +0900)
Change-Id: I4d9f4edcc0715850aa60c06c31d5f95744014297

examples/refraction-effect/refraction-effect-example.cpp

index 6be6080..e995e60 100644 (file)
@@ -480,6 +480,8 @@ private:
         return;
     }
 
+    fileBuffer.PushBack( '\0' );
+
     std::stringstream iss( &fileBuffer[0], std::ios::in );
 
     boundingBox.Resize( 6 );