Infer# Analysis
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Inizia eseguendo Infer# sul codice e rivedendo report_sarif.zip. Analizza le perdite di risorse segnalate in ZipFile.cs e ZipEntry.cs, oltre ai risultati relativi alle race condition di PartialInputStream in ZipFile.cs; il lavoro è completato quando i risultati segnalati sono stati risolti e l’analisi non li segnala più.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Steps to reproduce
- Get Infer#
- Run it on the code
ZipFile.cs
- (Pulse resource leak) Resource dynamically allocated by constructor ICSharpCode.SharpZipLib.Encryption.PkzipClassicEncryptCryptoTransform(), indirectly via call to
PkzipClassicManaged.CreateEncryptor(...)on line 3740 is not closed after the last access at line 3740, column 5.

- (Thread safety violation) Read/Write race. Non-private method
ZipFile$PartialInputStream.get_Position()reads without synchronization fromthis.ICSharpCode.SharpZipLib.Zip.ZipFile$PartialInputStream.readPos_. Potentially races with write in methodZipFile$PartialInputStream.Read(...).
Reporting because another access to the same memory occurs on a background thread, although this access may not. - (Thread safety violation) Read/Write race. Non-private method
ZipFile$PartialInputStream.ReadByte()reads without synchronization fromthis.ICSharpCode.SharpZipLib.Zip.ZipFile$PartialInputStream.readPos_. Potentially races with write in methodZipFile$PartialInputStream.Read(...).
Reporting because this access may occur on a background thread. - (Thread safety violation) Unprotected write. Non-private method
ZipFile$PartialInputStream.set_Position(...)writes to fieldthis.ICSharpCode.SharpZipLib.Zip.ZipFile$PartialInputStream.readPos_outside of synchronization.
Reporting because another access to the same memory occurs on a background thread, although this access may not.
ZipEntry.cs
- (Pulse resource leak) Resource dynamically allocated by constructor ICSharpCode.SharpZipLib.Zip.ZipExtraData() on line 870 is not closed after the last access at line 938, column 4.
- Lingua principale
- C#
- Stelle
- 3.9k
- Fork
- 1k
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di icsharpcode/SharpZipLib
-
*no response* bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
icsharpcode/SharpZipLib#905 · 1 commento ·
-
bug bzip2
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
icsharpcode/SharpZipLib#904 ·
-
SetLevel in ZipFile Apertaenhancement zip
Difficoltà 2/5 1-2 giorni Idoneità per principianti 55/100
icsharpcode/SharpZipLib#903 ·
-
*no response* bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
icsharpcode/SharpZipLib#901 · 1 commento ·
-
*no response* bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
icsharpcode/SharpZipLib#894 · 1 commento ·
Tutte le issue di icsharpcode/SharpZipLib
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
nightscout/nocturne#1425 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
RayWangQvQ/BiliBiliToolPro#1137 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100