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: kubernetes/apimachinery
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.33.0
Choose a base ref
...
head repository: kubernetes/apimachinery
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.33.1
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on May 9, 2025

  1. fix: fixes a possible panic in NewYAMLToJSONDecoder

    This PR fixes a possible panic caused by decoding a JSON document
    followed by a YAML document that is shorter than the first json
    document.
    
    This can cause a panic because the stream already consumed the JSON
    data. When we fallback to YAML reader, the YAML starts with a zero
    offset while the stream consumed data is non-zero. This could lead into
    consuming negative bytes because `d.yaml.InputOffset() -
    d.stream.Consumed()` is negative which will cause a panic.
    
    Signed-off-by: Tiago Silva <[email protected]>
    
    Kubernetes-commit: a257be82995ab689659c98dfb6336d63f677641d
    tigrato authored and k8s-publishing-bot committed May 9, 2025
    Configuration menu
    Copy the full SHA
    a3d1fde View commit details
    Browse the repository at this point in the history

Commits on May 13, 2025

  1. Merge pull request #131708 from tigrato/automated-cherry-pick-of-#131…

    …702-upstream-release-1.33
    
    Automated cherry pick of #131702: Panic in `NewYAMLToJSONDecoder`
    
    Kubernetes-commit: b5a1738ccca665fa5d03928c921694ffa342e402
    k8s-publishing-bot committed May 13, 2025
    Configuration menu
    Copy the full SHA
    173776a View commit details
    Browse the repository at this point in the history
Loading