Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 24d0ad3

Browse files
committedMay 4, 2021
Set yaml.NewYAMLOrJSONDecoder buffer size to 4096
Signed-off-by: Joe Lanford <[email protected]>
1 parent 573302a commit 24d0ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎internal/declcfg/load.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func extractCSV(objs []string) string {
7373

7474
func readYAMLOrJSON(r io.Reader) (*DeclarativeConfig, error) {
7575
cfg := &DeclarativeConfig{}
76-
dec := yaml.NewYAMLOrJSONDecoder(r, 16)
76+
dec := yaml.NewYAMLOrJSONDecoder(r, 4096)
7777
for {
7878
doc := json.RawMessage{}
7979
if err := dec.Decode(&doc); err != nil {

0 commit comments

Comments
 (0)
Please sign in to comment.