lab5: завершение второго ревью

PNG: validate color-type/bit-depth pairs, reject duplicate IHDR/PLTE, non-consecutive IDAT, PLTE after IDAT, and trailing bytes after the zlib stream; keep accepting valid palette, split-IDAT, 16-bit, and Adam7 uploads. Replay: a newer failed unpublished version returns the attachment to queued, while a published ready version stays serving.
This commit is contained in:
Vladislav Kunetskiy
2026-10-31 01:22:22 +03:00
parent 8c0a455aa5
commit 624f76b7d0
15 changed files with 406 additions and 61 deletions
+9 -9
View File
@@ -3,18 +3,18 @@ level=info msg="golangci-lint has version 2.13.2 built with go1.27.1 from (unkno
level=info msg="[config_reader] Config search paths: [./ /Users/vladislav/Projects/mtusi2026lab5 /Users/vladislav/Projects /Users/vladislav /Users /]"
level=info msg="[config_reader] Used config file .golangci.yml"
level=info msg="[config_reader] Module name \"mtusi-messenger\""
level=info msg="[goenv] Read go env for 5.412375ms: map[string]string{\"GOCACHE\":\"/Users/vladislav/Library/Caches/go-build\", \"GOROOT\":\"/opt/homebrew/Cellar/go/1.27.1/libexec\"}"
level=info msg="[goenv] Read go env for 6.440209ms: map[string]string{\"GOCACHE\":\"/Users/vladislav/Library/Caches/go-build\", \"GOROOT\":\"/opt/homebrew/Cellar/go/1.27.1/libexec\"}"
level=info msg="[lintersdb] Active 50 linters: [asasalint bodyclose canonicalheader containedctx contextcheck copyloopvar depguard durationcheck errcheck errname errorlint exhaustive exptostd fatcontext forbidigo forcetypeassert gocheckcompilerdirectives gocritic gofumpt goimports gomoddirectives gosec govet ineffassign intrange makezero misspell musttag nilerr nilnil noctx nolintlint perfsprint prealloc reassign recvcheck revive rowserrcheck sloglint sqlclosecheck staticcheck testifylint thelper tparallel unconvert unparam unused usestdlibvars usetesting wastedassign]"
level=info msg="[loader] Using build tags: [integration]"
level=info msg="[loader] Go packages loading at mode 8767 (compiled_files|deps|exports_file|files|name|types_sizes|imports) took 201.838125ms"
level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 9.454875ms"
level=info msg="[linters_context/goanalysis] analyzers took 459.537383ms with top 10 stages: revive: 313.452167ms, goimports: 34.1165ms, gosec: 14.898584ms, wastedassign: 14.345375ms, gomoddirectives: 12.584584ms, unparam: 9.832959ms, buildir: 8.875714ms, gocritic: 8.4825ms, buildssa: 3.619034ms, nilness: 2.914125ms"
level=info msg="[loader] Go packages loading at mode 8767 (compiled_files|deps|exports_file|imports|files|name|types_sizes) took 200.621833ms"
level=info msg="[runner/filename_unadjuster] Pre-built 0 adjustments in 10.581125ms"
level=info msg="[linters_context/goanalysis] analyzers took 0s with no stages"
level=info msg="[runner/exclusion_rules] Skipped 14 issues by rules: [Path: \"_test\\\\.go\", Linters: \"gosec, prealloc, forcetypeassert, unparam\"]"
level=info msg="[runner] Issues before processing: 887, after processing: 0"
level=info msg="[runner] Processors filtering stat (in/out): exclusion_paths: 887/887, generated_file_filter: 887/298, exclusion_rules: 298/6, nolint_filter: 6/0, invalid_issue: 887/887, path_absoluter: 887/887, filename_unadjuster: 887/887, path_relativity: 887/887, cgo: 887/887"
level=info msg="[runner] processing took 3.208459ms with stages: generated_file_filter: 2.020333ms, nolint_filter: 610.416µs, path_relativity: 272.751µs, exclusion_rules: 265.791µs, invalid_issue: 14.541µs, cgo: 13.167µs, path_absoluter: 4.667µs, filename_unadjuster: 4.25µs, sort_results: 708ns, max_same_issues: 500ns, fixer: 292ns, path_prettifier: 209ns, exclusion_paths: 209ns, source_code: 167ns, diff: 125ns, path_shortener: 84ns, uniq_by_line: 83ns, max_per_file_from_linter: 83ns, severity-rules: 42ns, max_from_linter: 41ns"
level=info msg="[runner] linters took 848.949083ms with stages: goanalysis_metalinter: 845.707708ms"
level=info msg="[runner] Processors filtering stat (in/out): exclusion_paths: 887/887, path_absoluter: 887/887, cgo: 887/887, invalid_issue: 887/887, exclusion_rules: 298/6, filename_unadjuster: 887/887, path_relativity: 887/887, nolint_filter: 6/0, generated_file_filter: 887/298"
level=info msg="[runner] processing took 3.023042ms with stages: generated_file_filter: 1.594792ms, nolint_filter: 794.292µs, path_relativity: 317.917µs, exclusion_rules: 278.458µs, invalid_issue: 13.25µs, cgo: 12.166µs, path_absoluter: 6.167µs, filename_unadjuster: 2.875µs, sort_results: 875ns, max_same_issues: 625ns, exclusion_paths: 416ns, fixer: 250ns, path_prettifier: 209ns, diff: 167ns, source_code: 167ns, max_per_file_from_linter: 125ns, path_shortener: 125ns, max_from_linter: 83ns, uniq_by_line: 83ns, severity-rules: 0s"
level=info msg="[runner] linters took 663.901083ms with stages: goanalysis_metalinter: 660.828ms"
0 issues.
level=info msg="File cache stats: 0 entries of total size 0B"
level=info msg="Memory: 12 samples, avg is 104.3MB, max is 151.3MB"
level=info msg="Execution took 1.066180875s"
level=info msg="Memory: 10 samples, avg is 91.9MB, max is 127.5MB"
level=info msg="Execution took 882.402625ms"