Skip to content

Fix in IoTSafe RaspPi client example#10574

Open
embhorn wants to merge 1 commit into
wolfSSL:masterfrom
embhorn:zd21918
Open

Fix in IoTSafe RaspPi client example#10574
embhorn wants to merge 1 commit into
wolfSSL:masterfrom
embhorn:zd21918

Conversation

@embhorn
Copy link
Copy Markdown
Member

@embhorn embhorn commented Jun 2, 2026

Description

Harden example application by avoiding strcat

Thanks to Ozidx(https://github.com/Ozidx) for reporting this issue.

Fixes zd21918

Testing

Customer confirmed

Checklist

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

@embhorn embhorn self-assigned this Jun 2, 2026
Copilot AI review requested due to automatic review settings June 2, 2026 13:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR hardens the IoT-SAFE Raspberry Pi client example by reducing unsafe string handling when parsing CLI arguments and when constructing the HTTP POST request.

Changes:

  • Add length checks before copying CLI argument strings into fixed-size buffers in main.c.
  • Replace repeated strcat() calls with a single snprintf()-based HTTP request construction in the TLS 1.3 client example.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
IDE/iotsafe-raspberrypi/main.c Adds argument-length bounds checks before copying user-provided CLI values into local buffers.
IDE/iotsafe-raspberrypi/client-tls13.c Replaces strcat-built HTTP request with snprintf and adds overflow detection for the request buffer.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread IDE/iotsafe-raspberrypi/client-tls13.c
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

MemBrowse Memory Report

No memory changes detected for:

@embhorn embhorn requested review from Copilot and removed request for Copilot June 2, 2026 15:29
@embhorn embhorn assigned wolfSSL-Bot and unassigned embhorn Jun 2, 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.

3 participants