1
1
mirror of https://github.com/wader/fq.git synced 2024-12-24 13:52:02 +03:00
fq/pkg/scalar
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
..
scalar_gen.go scalar: Add *Fn type to map value and clearer naming 2022-05-07 12:46:34 +02:00
scalar_gen.go.tmpl scalar: Add *Fn type to map value and clearer naming 2022-05-07 12:46:34 +02:00
scalar.go decode,scalar: Map empty string also else sym might ends up nil 2022-08-04 12:23:31 +02:00