Mattias Wadman
9a5fcc89f1
xml: Allow trailing <?procinstr?>
...
Also more context in error messages and refactor trim function
2022-08-11 23:48:29 +02:00
Mattias Wadman
c233215aba
dns: Rename isTCP to hasLengthHeader
2022-08-10 13:35:01 +02:00
Mattias Wadman
104f4a7926
Merge pull request #366 from wader/dns-over-tcp-incorrect-probe
...
dns: Don't use dns (udp) format for tcp also
2022-08-09 18:21:50 +02:00
Mattias Wadman
46dca8cdc5
dns: Don't use dns (udp) format for tcp also
...
Fixes issue with TCP streams being probed as dns over TCP
2022-08-09 18:15:34 +02:00
Mattias Wadman
3a6a80f0e6
Merge pull request #365 from wader/dump-root-header
...
interp,dump: Show address bar for root, nested roots and on format ch…
2022-08-09 18:15:14 +02:00
Mattias Wadman
29005c70bf
interp,dump: Show address bar for root, nested roots and on format change
...
Also increase indent for nested roots a bit.
Makes it a bit easier to read i think.
2022-08-09 18:09:41 +02:00
Mattias Wadman
4dec7ff64b
Merge pull request #364 from wader/decode-refactor-scalar-type-assert
...
decode: Refactor to use scalar type assert helper
2022-08-08 18:17:51 +02:00
Mattias Wadman
fbe7bc9af6
Merge pull request #363 from wader/zip-correct-max-peek
...
zip: Correctly limit max EOCD find
2022-08-08 18:15:55 +02:00
Mattias Wadman
5e8be578b2
Merge pull request #362 from wader/macho-cmd-symtab-symbols
...
macho: Decode cmd symtab symbols
2022-08-08 18:10:18 +02:00
Mattias Wadman
502f451cc3
decode: Refactor to use scalar type assert helper
2022-08-08 18:09:49 +02:00
Mattias Wadman
d607bee180
zip: Correctly limit max EOCD find
2022-08-08 18:04:48 +02:00
Mattias Wadman
b2d4e6d94d
macho: Decode cmd symtab symbols
2022-08-08 18:02:59 +02:00
Mattias Wadman
414f64e84a
Merge pull request #355 from wader/bump-docker-golang-1.19.0
...
Update docker-golang from 1.18.5 to 1.19.0
2022-08-05 00:47:11 +02:00
Mattias Wadman
836eb3703b
Merge pull request #356 from wader/bump-github-go-version-1.19.0
...
Update github-go-version from 1.18.5, 1.18.5, 1.18.5 to 1.19.0
2022-08-05 00:47:02 +02:00
Mattias Wadman
545dac8c86
test: Update tests, go 1.19 uses \xff instead of \u00ff
2022-08-05 00:37:28 +02:00
bump
103991f79a
Update github-go-version from 1.18.5, 1.18.5, 1.18.5 to 1.19.0
2022-08-05 00:33:11 +02:00
Mattias Wadman
eeb6ab3f7c
Merge pull request #360 from wader/bump-make-golangci-lint-1.48.0
...
Update make-golangci-lint from 1.47.3 to 1.48.0
2022-08-05 00:31:23 +02:00
Mattias Wadman
e903dac47f
Merge pull request #361 from wader/bump-github-golangci-lint-1.48.0
...
Update github-golangci-lint from 1.47.3 to 1.48.0
2022-08-05 00:30:53 +02:00
Mattias Wadman
3c21b058e4
lint: Fix ioutil deprecation, reformat for new doc standard
2022-08-05 00:22:32 +02:00
bump
198305ecfc
Update github-golangci-lint from 1.47.3 to 1.48.0
...
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.48.0
2022-08-04 22:04:21 +00:00
bump
c8069d22a5
Update make-golangci-lint from 1.47.3 to 1.48.0
...
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.48.0
2022-08-04 22:04:17 +00:00
Mattias Wadman
b135701ccd
Merge pull request #359 from wader/zip-skip-header-check
...
zip: Skip header assert as there are zip files with other things appe…
2022-08-04 12:53:09 +02:00
Mattias Wadman
c683b66769
Merge pull request #358 from wader/decode-scalar-max-error
...
decode,scalar: Map empty string also else sym might ends up nil
2022-08-04 12:38:41 +02:00
Mattias Wadman
19b70899ca
zip: Skip header assert as there are zip files with other things appended
2022-08-04 12:33:33 +02:00
Mattias Wadman
5d9ffead52
decode,scalar: Map empty string also else sym might ends up nil
...
Later mappers should be able to rely on sym being a value of a certain type.
In this crash case tar.go had this:
d.FieldUTF8NullFixedLen("mtime", 12, scalar.SymUParseUint(8), scalar.DescriptionSymUUnixTime)
If mtime was empty string SymUParseUint was not even called so did not bail out running
all mappers.
2022-08-04 12:23:31 +02:00
Mattias Wadman
7d1316244f
Merge pull request #357 from wader/xml-html-array-attrs-null
...
xml,html: Always include attrs and children in array mode
2022-08-04 12:05:16 +02:00
Mattias Wadman
f4e0137244
xml,html: Always include attrs and children in array mode
...
Was hard to use when you dont know what indexes things will have. They are sill optioal for toxml
2022-08-04 11:44:59 +02:00
bump
0de2c9065d
Update docker-golang from 1.18.5 to 1.19.0
2022-08-02 19:40:02 +00:00
Mattias Wadman
37de35dd5a
Merge pull request #353 from wader/bump-docker-golang-1.18.5
...
Update docker-golang from 1.18.4 to 1.18.5
2022-08-02 18:10:39 +02:00
Mattias Wadman
1353aea791
Merge pull request #354 from wader/bump-github-go-version-1.18.5
...
Update github-go-version from 1.18.4, 1.18.4, 1.18.4 to 1.18.5
2022-08-02 18:10:32 +02:00
bump
7b8d95bf9f
Update github-go-version from 1.18.4, 1.18.4, 1.18.4 to 1.18.5
2022-08-02 16:03:50 +00:00
bump
25061acab2
Update docker-golang from 1.18.4 to 1.18.5
2022-08-02 16:03:47 +00:00
Mattias Wadman
5e7d5bbdcf
Merge pull request #352 from wader/macho-refactor-strings
...
macho: Split into macho/macho_fat, fix offset issue and add string de…
2022-08-02 16:49:09 +02:00
Mattias Wadman
725c8e83ab
macho: Split into macho/macho_fat, fix offset issue and add string decoding
...
Split fat macho into own decoder macho_fat. This also fixes issue with section
offset etc not being correct as they are from the start of each embedded file.
Make all address and offset field be in hex.
Decode __cstring, __ustring and __cfstring sections.
Fix LC_ENCRYPTION_INFO_64 missing pading issue.
Skip ranging for __bss and __common as they dont have any data in the file.
Simplifed magic handling a bit and add symbols.
Simplified state struct field, had redudant struct.
2022-08-02 14:36:53 +02:00
Mattias Wadman
888a471245
Merge pull request #350 from wader/bump-github-golangci-lint-1.47.3
...
Update github-golangci-lint from 1.47.2 to 1.47.3
2022-08-01 18:54:35 +02:00
Mattias Wadman
bc6cffde61
lint,decode,fuzz:: Fix nilerr warnings, one real one should be ignored for now
2022-08-01 18:47:24 +02:00
Mattias Wadman
a8dd13851a
Merge pull request #349 from wader/bump-make-golangci-lint-1.47.3
...
Update make-golangci-lint from 1.47.2 to 1.47.3
2022-08-01 18:40:47 +02:00
Mattias Wadman
691b150e3f
Merge pull request #348 from wader/decode-simplify-array-struct-sort
...
decode: Simplify compound range sort behaviour
2022-08-01 18:40:39 +02:00
bump
4255b87aba
Update github-golangci-lint from 1.47.2 to 1.47.3
...
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.47.3
2022-08-01 16:04:00 +00:00
bump
f579e9c327
Update make-golangci-lint from 1.47.2 to 1.47.3
...
Release notes https://github.com/golangci/golangci-lint/releases/tag/v1.47.3
2022-08-01 16:03:57 +00:00
Mattias Wadman
840292ba6e
decode: Simplify compound range sort behaviour
...
Doing it thru a propery in the decode fn feels a bit hidden and will
also not get set on failed decoding.
Now array is not range sorted, logic is you care about index number and ordering.
Struct is range sorted as you will prefer to fields by name.
2022-08-01 17:17:54 +02:00
Mattias Wadman
c1f7a80ac6
Merge pull request #347 from wader/doc-update-demo-and-help
...
doc,interp: Update and add more examples
2022-07-30 20:30:41 +02:00
Mattias Wadman
ed4247836c
doc,interp: Update and add more examples
2022-07-30 20:21:35 +02:00
Mattias Wadman
efa196ba2b
Merge pull request #346 from wader/doc-help-raw-slurp
...
interp,doc: Add -R raw string slurp hint to -s help
2022-07-29 16:43:46 +02:00
Mattias Wadman
8767bdc731
Merge pull request #345 from wader/readme-demo-update
...
doc: Update README demo a bit with new features
2022-07-29 16:43:38 +02:00
Mattias Wadman
4eae7ffd99
interp,doc: Add -R raw string slurp hint to -s help
2022-07-29 16:37:42 +02:00
Mattias Wadman
f247edb592
doc: Update README demo a bit with new features
2022-07-29 16:34:27 +02:00
Mattias Wadman
75a6873508
Merge pull request #344 from wader/elf-remove-redundant-program-header-struct
...
elf: Remove redundant program_header struct
2022-07-29 13:48:57 +02:00
Mattias Wadman
3613b6d4dd
elf: Remove redundant program_header struct
2022-07-29 13:41:21 +02:00
Mattias Wadman
960ad46c6e
Merge pull request #342 from wader/remove-format-files
...
interp: Use RegisterFS instead of format files
2022-07-27 13:44:49 +02:00