Skip to content

[Core] Silence GCC 15 false positives from vendored stb_image - #3100

Open
lixuanqun wants to merge 1 commit into
signalwire:masterfrom
lixuanqun:cursor/stb-gcc15-stringop-overflow-ee5d
Open

[Core] Silence GCC 15 false positives from vendored stb_image#3100
lixuanqun wants to merge 1 commit into
signalwire:masterfrom
lixuanqun:cursor/stb-gcc15-stringop-overflow-ee5d

Conversation

@lixuanqun

Copy link
Copy Markdown

GCC 15 treats -Wstringop-overflow / -Wmaybe-uninitialized as errors when building with -Werror, and flags false positives inside the vendored stb_image / stb_image_write headers (e.g. tc[3] vs img_n). Wrap the includes with diagnostic push/pop so switch_core_video.c builds cleanly.

Fixes #3040

Description

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Code cleanup / refactor

Related Issues

Testing

  • Added/updated unit tests
  • Tested manually
  • Tested with live SignalWire credentials (if applicable)

Checklist

  • I have read the CONTRIBUTING guidelines
  • My code follows the project's style guidelines
  • I have added tests for my changes (if applicable)
  • I have updated documentation (if applicable)
  • All existing tests pass

Additional Notes

GCC 15 treats -Wstringop-overflow / -Wmaybe-uninitialized as errors when
building with -Werror, and flags false positives inside the vendored
stb_image / stb_image_write headers (e.g. tc[3] vs img_n). Wrap the
includes with diagnostic push/pop so switch_core_video.c builds cleanly.

Fixes signalwire#3040

Co-authored-by: li xuanqun <793005378@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

string op overflow in src/switch_core_video.c

2 participants