aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/hash/hash.go
Commit message (Collapse)AuthorAgeFilesLines
* pkg/hash: support hashing stringsDmitry Vyukov2025-11-241-1/+6
| | | | | | | Currently passing wrong types (e.g. a string) to hash.Hash/String leads to silent misbehavior: the part is ignored in the hash. This is a very bad failure mode. Panic loudly. And support hashing strings.
* all: delete dead codeTaras Madan2025-02-101-13/+0
| | | | | go install golang.org/x/tools/cmd/deadcode@latest deadcode -test ./...
* prog: reduce amount of hint replacementsDmitry Vyukov2024-07-021-3/+3
| | | | | | | | | | | | | | | | | | | | Several optimizations to reduce amount of hint replacements: 1. Don't mutate int's that are <= 8 bits. 2. Don't mutate data that is <= 3 bytes. 3. Restrict mutation of len only value >10 and < 1<<20. Values <= 10 we can produce during normal mutation. Values > 1<<20 are presumably not length of something and we have logic to produce various large bogus lengths. 4. Include all small ints <= 16 into specialInts and remove 31, 32, 63 (don't remember where they come from). 5. Don't produce other known flags (and combinations) for flags. And a larger part computes groups of related arguments so that we don't try to produce known ioctl's from other known ioctl's, and similarly for socket/socketpair/setsockopt/etc. See comments in Target.initRelatedFields for details. Update #477
* all: use special placeholder for errorsTaras Madan2023-07-241-1/+1
|
* go.mod, vendor: update (#3358)Taras Madan2022-09-051-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * go.mod, vendor: remove unnecessary dependencies Commands: 1. go mod tidy 2. go mod vendor * go.mod, vendor: update cloud.google.com/go Commands: 1. go get -u cloud.google.com/go 2. go mod tidy 3. go mod vendor * go.mod, vendor: update cloud.google.com/* Commands: 1. go get -u cloud.google.com/storage cloud.google.com/logging 2. go mod tidy 3. go mod vendor * go.mod, .golangci.yml, vendor: update *lint* Commands: 1. go get -u golang.org/x/tools github.com/golangci/golangci-lint@v1.47.0 2. go mod tidy 3. go mod vendor 4. edit .golangci.yml to suppress new errors (resolved in the same PR later) * all: fix lint errors hash.go: copy() recommended by gosimple parse.go: ent is never nil verifier.go: signal.Notify() with unbuffered channel is bad. Have no idea why. * .golangci.yml: adjust godot rules check-all is deprecated, but still work if you're hesitating too - I'll remove this commit
* pkg/hash: allow to hash multiple byte slicesDmitry Vyukov2017-07-211-4/+21
| | | | | Hash/String now allow to hash mutiple byte slices without copying them into a single slice first.
* pkg/hash: move from hashDmitry Vyukov2017-06-031-0/+40