Skip to content

[SBOMblebee] ChessCom/protobuf: fix 8 SAST findings (strcpy, source-size copies) - #12

Open
sbomblebee[bot] wants to merge 9 commits into
mainfrom
sbomblebee/sast-fix/auto
Open

sbomblebee[bot] wants to merge 9 commits into
mainfrom
sbomblebee/sast-fix/auto

Conversation

@sbomblebee

@sbomblebee sbomblebee Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

[SBOMblebee] Automated fix

  • Repository dashboard

  • SAST dashboard

  • Run ID: 80eecf41-6bad-45a0-bbae-33c30229b21f

  • subprocess.cc: portable_strdup now copies with snprintf into a malloc of the string length plus NUL, so strcpy is gone.

  • strtod.c: locale radix and the rest of the localized number copy into caller-sized buffers with dest clamps.

  • def_builder.c: prefix is memcpy'd using a dest cap of prefix plus name plus NUL, not strcpy.

  • php message Any type_url: snprintf into an arena buffer sized for prefix plus name.

  • conformance JSON errors: snprintf into an arena buffer of the error length plus NUL.

Dest-bounded copies confirmed on the fix-branch files.

Generated by the security team's GNS fix agent. Questions → #ask_security. If this change isn't right, close the PR and security will triage.

@sbomblebee sbomblebee Bot changed the title [SBOMblebee] ChessCom/protobuf: 6 SAST fixes in subprocess, strtod, message.c [SBOMblebee] ChessCom/protobuf: 6 SAST remediations in strcpy/type-url paths Nov 1, 2026
@sbomblebee sbomblebee Bot changed the title [SBOMblebee] ChessCom/protobuf: 6 SAST remediations in strcpy/type-url paths [SBOMblebee] ChessCom/protobuf: 8 SAST remediations (strcpy, type_url, copies) Nov 2, 2026
@sbomblebee sbomblebee Bot changed the title [SBOMblebee] ChessCom/protobuf: 8 SAST remediations (strcpy, type_url, copies) [SBOMblebee] ChessCom/protobuf: fix 8 SAST findings (strcpy, source-size copies) Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant