Skip to content

Commit

Permalink
Merge pull request #218 from mcorino/develop
Browse files Browse the repository at this point in the history
fix possible format insecurity
  • Loading branch information
mcorino committed Nov 13, 2023
2 parents f49e6a7 + d3ddf98 commit ae50d18
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/wxruby3/swig/common.i
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
}
else
{
rb_raise(swigex.getError(), swigex.what());
rb_exc_raise(rb_exc_new_cstr(swigex.getError(), swigex.what()));
}
}
catch (const std::exception& ex) {
Expand Down
2 changes: 1 addition & 1 deletion rakelib/lib/config/linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def init_platform
@dll_pfx = 'lib'

if @wx_version
@extra_cflags.concat %w[-Wno-unused-function -Wno-conversion-null -Wno-maybe-uninitialized -Wno-format-security]
@extra_cflags.concat %w[-Wno-unused-function -Wno-conversion-null -Wno-maybe-uninitialized]
@extra_cflags << ' -Wno-deprecated-declarations' unless @no_deprecated

@ruby_ldflags << '-s' if @release_build # strip debug symbols for release build
Expand Down
2 changes: 1 addition & 1 deletion rakelib/lib/config/macosx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def init_platform
@ld.sub!(/-o\s*\Z/, '')

@extra_cflags.concat %w[-Wno-unused-function -Wno-conversion-null -Wno-sometimes-uninitialized
-Wno-overloaded-virtual -Wno-deprecated-copy -Wno-format-security]
-Wno-overloaded-virtual -Wno-deprecated-copy]
@extra_cflags << ' -Wno-deprecated-declarations' unless @no_deprecated

# create a .dylib binary
Expand Down

0 comments on commit ae50d18

Please sign in to comment.