Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ugorji/go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2.11
Choose a base ref
...
head repository: ugorji/go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 17 commits
  • 18 files changed
  • 3 contributors

Commits on Mar 8, 2023

  1. Copy the full SHA
    41e7844 View commit details
  2. Copy the full SHA
    3a08a64 View commit details

Commits on Nov 28, 2023

  1. codec: test: use Intn(2) so we get 0 or 1

    Fixes #402
    ugorji committed Nov 28, 2023
    Copy the full SHA
    879e7ea View commit details
  2. codecgen: use base32 with unique letters for type names

    We previously used base64 with duplicate letters.
    This fails from go1.22
    
    Fixes #407
    ugorji committed Nov 28, 2023
    Copy the full SHA
    8286c2d View commit details
  3. CBOR: Reject malformed and invalid indefinite-length strings (#405)

    * Test UTF-8 validation of indefinite-length CBOR text string chunks.
    
    Per the CBOR spec, each chunk of an indefinite-length text string must be valid, or the entire
    indefinite-length string is invalid.
    
    * Test indefinite-length CBOR string chunks match parent type.
    
    An indefinite-length text or byte string is not well-formed unless all of its chunks are of the same
    major type as the indefinite-length string.
    
    * CBOR: Reject malformed/invalid indefinite strings.
    
    This addresses two conformance issues:
    
    1. All chunks of an indefinite-length text string must be valid, so if UTF-8 validation is enabled
    for text strings in DecodeOptions, it should be applied to each chunk.
    
    2. All of the chunks of an indefinite-length text or byte string must have the same major type as
    the indefinite-length string itself. Indefinitely-length text strings can't contain byte strings and
    vice versa.
    benluddy authored Nov 28, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f7f63a0 View commit details
  4. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    126da48 View commit details
  5. Copy the full SHA
    a315d04 View commit details
  6. codec: cbor: cbor: use fmtTime instead of time.Format for RFC3339Nano

    This saves on some possible allocation, at the expense of a 5-word
    increase in the cborEncDriver structure.
    
    Fixes #394
    ugorji committed Nov 28, 2023
    Copy the full SHA
    1acedc2 View commit details
  7. Copy the full SHA
    48ba79b View commit details
  8. codec: json: document behaviour differences vs encoding/json package

    - case sensitive struct name matching
    - etc
    
    Fixes #400
    ugorji committed Nov 28, 2023
    Copy the full SHA
    77eda90 View commit details
  9. Copy the full SHA
    190086c View commit details
  10. Copy the full SHA
    43b79bf View commit details

Commits on Nov 30, 2023

  1. Copy the full SHA
    23d384a View commit details
  2. Copy the full SHA
    407a57a View commit details
  3. Copy the full SHA
    10952fa View commit details
  4. Copy the full SHA
    2d571c5 View commit details

Commits on Mar 7, 2024

  1. codec: json: leading zeros are not allowed in decimal numbers

    Fixes #408
    ugorji committed Mar 7, 2024
    Copy the full SHA
    07c54c2 View commit details
Showing with 859 additions and 733 deletions.
  1. +640 −609 codec/bench/bench.out.txt
  2. +7 −8 codec/bench/go.mod
  3. +53 −32 codec/bench/go.sum
  4. +16 −7 codec/cbor.go
  5. +49 −2 codec/cbor_test.go
  6. +5 −5 codec/codec_test.go
  7. +2 −2 codec/codecgen/go.mod
  8. +23 −6 codec/codecgen/go.sum
  9. +15 −1 codec/decimal.go
  10. +6 −7 codec/decode.go
  11. +6 −5 codec/encode.go
  12. +9 −7 codec/gen.go
  13. +7 −24 codec/helper.go
  14. +3 −0 codec/json.go
  15. +1 −1 codec/msgpack.go
  16. +2 −2 codec/reader.go
  17. +14 −14 codec/values_codecgen_generated_test.go
  18. +1 −1 go.mod
Loading