New IO utils and Base64 fixes - #286
aidankeefe2022 wants to merge 4 commits into
Conversation
1b35e33 to
556dc5a
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #286
Scan targets checked: wolfclu-bugs, wolfclu-src
Findings: 4
4 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #286
Scan targets checked: wolfclu-bugs, wolfclu-src
Findings: 2
2 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #286
Scan targets checked: wolfclu-bugs, wolfclu-src
Findings: 2
2 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
df9086c to
a022b83
Compare
a022b83 to
dc4ea63
Compare
fixed + hallucinations
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #286
Scan targets checked: wolfclu-src, wolfclu-bugs
Findings: 2
2 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
dc4ea63 to
d704e25
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #286
Scan targets checked: wolfclu-src, wolfclu-bugs
Findings: 2
2 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
d704e25 to
8b856ef
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #286
Scan targets checked: wolfclu-src, wolfclu-bugs
Findings: 3
3 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
Picking on future feature to allow wolfCLU to not need filesystem not in scope for this fix
8b856ef to
bc07bd8
Compare
|
Planning on expanding this file interface to the rest of the codebase but for now starting with base64 |
a025563 to
dbeb34a
Compare
wolfSSL-Fenrir-bot
left a comment
There was a problem hiding this comment.
Fenrir Automated Review — PR #286
Scan targets checked: wolfclu-src, wolfclu-bugs
Findings: 2
2 finding(s) posted as inline comments (see file-level comments below)
This review was generated automatically by Fenrir. Reported findings require changes before merge.
423d36d to
eae4ffe
Compare
Out of scope change
added more tests for io for base64 and rewrote IO system for base64 looking to extend in the future
eae4ffe to
4d477ac
Compare
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Large-stream capacity handling is not portable, and several intended buffer-boundary tests target incorrect sizes.
Review effort: Balanced
Findings: 1
Open (4)
What changed in this PR
Adds reusable file/stream I/O to prevent Base64 stdin truncation.
Changes:
- Introduces dynamically growing I/O helpers.
- Migrates Base64 processing to the new helpers.
- Adds build integration and expanded regression tests.
| File | Description |
|---|---|
wolfclu/include.am |
Installs the new header. |
wolfclu/clu_io.h |
Defines the public I/O API. |
src/tools/clu_io.c |
Implements stream/file operations. |
src/tools/clu_base64.c |
Uses the new I/O abstraction. |
src/include.am |
Adds the implementation to Autotools. |
wolfCLU.vcxproj |
Adds files to the Visual Studio build. |
wolfCLU.vcxproj.filters |
Categorizes the new project files. |
tests/base64/base64-test.py |
Adds long-input and I/O regression coverage. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
4d477ac to
5520958
Compare
5520958 to
11f0670
Compare


Added read/write io functions that can be used to interact with any file pointer
Fix for Fenrir finding : https://fenrir.wolfssl.com/finding/11088