Skip to content
This repository has been archived by the owner on Sep 9, 2020. It is now read-only.

Fix scan for body parameter in ksonnet.parsePaths() #155

Merged
merged 1 commit into from
Nov 5, 2018

Conversation

shomron
Copy link
Contributor

@shomron shomron commented Nov 5, 2018

Previously, body was assigned the address of the iteration variable.
Since this variable is reused, additional parameters following the body would
overwrite it and be used in its stead, leading to undefined behavior
(such as the panic described in the linked issue).

Addresses ksonnet/ksonnet#883

Signed-off-by: Oren Shomron shomron@gmail.com

@shomron shomron requested a review from bryanl November 5, 2018 19:57
@shomron shomron force-pushed the dont-point-to-range-variable branch from ab1f83d to bedba2a Compare November 5, 2018 19:58
Previously, body was assigned the address of the iteration variable.
Since this variable is reused, additional parameters following the body would
overwrite it and be used in its stead, leading to undefined behavior
(such as the panic described in the linked issue).

Addresses ksonnet/ksonnet#883

Signed-off-by: Oren Shomron <shomron@gmail.com>
@shomron shomron force-pushed the dont-point-to-range-variable branch from bedba2a to c848e79 Compare November 5, 2018 19:59
@shomron shomron merged commit d03da23 into ksonnet:master Nov 5, 2018
@shomron shomron deleted the dont-point-to-range-variable branch November 5, 2018 20:27
shomron added a commit to shomron/ksonnet that referenced this pull request Nov 5, 2018
…ody parameter in cluster OpenAPI spec

Incorporates ksonnet/ksonnet-lib#155

Fixes ksonnet#883

Signed-off-by: Oren Shomron <shomron@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants