Skip to content

Use size_t in wolfSSL_strnstr and reject negative indices in mp_get_digit#10138

Open
padelsbach wants to merge 1 commit intowolfSSL:masterfrom
padelsbach:cobalt-fixes-2026-04-06
Open

Use size_t in wolfSSL_strnstr and reject negative indices in mp_get_digit#10138
padelsbach wants to merge 1 commit intowolfSSL:masterfrom
padelsbach:cobalt-fixes-2026-04-06

Conversation

@padelsbach
Copy link
Copy Markdown
Contributor

@padelsbach padelsbach commented Apr 6, 2026

Description

Fixes zd21539

Testing

Manual review

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@padelsbach
Copy link
Copy Markdown
Contributor Author

jenkins retest this please

@padelsbach padelsbach marked this pull request as ready for review April 7, 2026 15:22
@padelsbach padelsbach force-pushed the cobalt-fixes-2026-04-06 branch from 3873057 to 4db500b Compare April 9, 2026 15:22
Copy link
Copy Markdown
Contributor

@dgarske dgarske left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐺 Skoll Code Review

Overall recommendation: APPROVE
Findings: 2 total — 2 posted, 1 skipped

Posted findings

  • [Medium] Incomplete type migration: parameter n still unsigned int while s2_len is now size_twolfcrypt/src/wc_port.c:4268-4275
  • [Medium] No test for negative index in mp_get_digit
Skipped findings
  • [Medium] No test for negative index in mp_get_digit

Review generated by Skoll via openclaw

@padelsbach padelsbach force-pushed the cobalt-fixes-2026-04-06 branch from 4db500b to b2c480e Compare April 9, 2026 22:39
@padelsbach
Copy link
Copy Markdown
Contributor Author

addressed both comments from skoll

@padelsbach padelsbach removed their assignment Apr 9, 2026
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.

4 participants