]> 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]>
Mon, 25 May 2026 19:11:55 +0000 (16:11 -0300)
commit18f72368c75ed2d81f708d2b9c3b5c94d75f6b4e
tree4b4a950ccffb4450ead856210389e18a1a63831a
parent663410bb326af2baad704963ea7e98994b4344cf
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