IntegerAlex / IntegerAlex/syncro

(CXX-S1004) While processing the buffer using `printf`/`scanf`, not using any width for the format specifier `%s` is vulnerable to buffer overflow

Aperta
#11 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug good first issue
Lingua principale
C
Stelle
2
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## Description
Using I/O operations such as `printf` and `scanf` without setting width limits for format strings can allow for buffer overflow when reading from a stdin pipe or writing to a stdout pipe.

## Occurrences
There are 2 occurrences of this issue in the repository.

See all occurrences on DeepSource → [app.deepsource.com/gh/IntegerAlex/syncro/issue/CXX-S1004/occurrences/](https://app.deepsource.com/gh/IntegerAlex/syncro/issue/CXX-S1004/occurrences/)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start by reviewing the two occurrences linked in the DeepSource CXX-S1004 report and inspect the surrounding printf/scanf calls. Update the format handling so the input and output operations use appropriate width limits, then verify both reported occurrences no longer trigger the vulnerability.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
c
Ambito
security
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.