Infer# Analysis
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách chạy Infer# trên mã nguồn và xem xét report_sarif.zip. Điều tra các rò rỉ tài nguyên được báo cáo trong ZipFile.cs và ZipEntry.cs, cùng với các phát hiện về race của PartialInputStream trong ZipFile.cs; được xem là hoàn tất khi các phát hiện được báo cáo đã được xử lý và quá trình phân tích không còn báo cáo chúng nữa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C#
- Star
- 3.9k
- Fork
- 1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của icsharpcode/SharpZipLib
-
*no response* bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
icsharpcode/SharpZipLib#905 · 1 bình luận ·
-
bug bzip2
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
icsharpcode/SharpZipLib#904 ·
-
SetLevel in ZipFile Đang mởenhancement zip
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 55/100
icsharpcode/SharpZipLib#903 ·
-
*no response* bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
icsharpcode/SharpZipLib#901 · 1 bình luận ·
-
*no response* bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
icsharpcode/SharpZipLib#894 · 1 bình luận ·
Tất cả issue của icsharpcode/SharpZipLib
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nightscout/nocturne#1425 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
cake-build/cake#5024 ·
-
Gå gjennom ESLint-suppressions Đang mởFrontend status/draft TechnicalDebt
Độ khó 2/5 1-2 ngày Mức phù hợp với người mới 75/100
Altinn/altinn-auth#4143 ·