Skip to content

Conversation

@fronders
Copy link

Hi, thanks for the lib!

I know that size-unsafe functions are not to be used. In one of my projects some 3rd party lib used both vsprintf() and vsnprintf(). Which meant that all vsnprintf() were successfully replaced by your implementation, but vsprintf() was used from default newlib (in my case for STM32 MCU). This led to lot of confusion until I discovered there's no vsprintf() implementation.

That's why i added vsprintf() function just so that all of the [v][s][n]printf() options are supported and replaced by the lib.

P. S. I like to use this header file from GitHub to check for banned/unsafe functions :)

@eyalroz
Copy link
Collaborator

eyalroz commented Jun 28, 2021

Hello @fronders ,

I just merged your PR into my fork: eyalroz#3

... and I also added some unit tests so that coverity doesn't frown at you like here. The fork also has some other people's contribution pushed in.

KarlK90 pushed a commit to qmk/printf that referenced this pull request Jul 7, 2022
…ased functions with strength-reduced actual standard library functions.
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.44%. Comparing base (d3b9846) to head (1d24d5a).

Files with missing lines Patch % Lines
printf.c 0.00% 2 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##            master      #76      +/-   ##
===========================================
- Coverage   100.00%   99.44%   -0.56%     
===========================================
  Files            1        1              
  Lines          359      361       +2     
===========================================
  Hits           359      359              
- Misses           0        2       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@eyalroz
Copy link
Collaborator

eyalroz commented Oct 24, 2025

@fronders : Please consider closing this bug - vsprintf has long been added to the actively-maintained fork, eyalroz/printf.

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