Skip to content

Commit

Permalink
Merge pull request #576 from andre-schulz/make_vsnprintf_usage_more_r…
Browse files Browse the repository at this point in the history
…obust

MVE: Don't hardcode vsnprintf() destination buffer size
  • Loading branch information
simonfuhrmann authored Sep 3, 2024
2 parents 24a3f7a + a4bb65f commit b48d14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/mve/image_io.cc
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ void
tiff_error_handler (char const* /*module*/, char const* fmt, va_list ap)
{
char msg[2048];
::vsnprintf(msg, 2048, fmt, ap);
::vsnprintf(msg, sizeof(msg), fmt, ap);
throw util::Exception(msg);
}

Expand Down

0 comments on commit b48d14f

Please sign in to comment.