Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Throw an error in fileScan() in case of ClamAV error rather than returning `true`

Aperta
#36 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Individua fileScan() nel codice di php-clamav ed esamina come viene interpretato l’output di SCAN quando non contiene OK. Riproduci l’errore del percorso del file ClamAV segnalato e verifica che sollevi una Exception invece di restituire true; aggiungi o aggiorna un test mirato se la struttura di test esistente lo supporta.

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

Descrizione

I've had an issue where a mount wasn't working in a docker container with ClamAV, so SCAN command was returning something like this:
/clamav_tmp/file.docx: File path check failure: No such file or directory

I've been using fileScan() in php-clamav and since it did not find 'OK' in ClamAV output, it returned true which led to all files scanned being silently marked as having a virus.

I think this should instead have caused an Exception, so that it's clear that there is an issue with the scanning.

Lingua principale
PHP
Stelle
73
Fork
31
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di appwrite/php-clamav

Tutte le issue di appwrite/php-clamav

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.