]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
security: Round 5.1 scanf %s limit (U02)
authorTulio A M Mendes <[email protected]>
Mon, 25 May 2026 19:11:55 +0000 (16:11 -0300)
committerTulio A M Mendes <[email protected]>
Wed, 3 Jun 2026 04:02:35 +0000 (01:02 -0300)
commit827658de514799d202b3d87dc34f86cf02e8b3b2
treef70a1533ce7429f798aa5c6cecdcc8e6e0a34a78
parent23b48a5b425876fa477b7c82d11d2c0935b19273
security: Round 5.1 scanf %s limit (U02)

U02: Limit %s to 255 chars in scanf/sscanf/fscanf to prevent buffer overflow
- Added check (i < 255) in %s parsing loop for scanf
- Added check (i < 255) in %s parsing loop for sscanf
- Added check (i < 255) in %s parsing loop for fscanf

Tests: 119/119 PASS (smoke test, SMP=4)
user/ulibc/src/stdio.c