-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mod/modfile: parse module.cue in data-only mode
This reduces the surface for denial of service attacks involving arbitrary computations via the module.cue file. Note that we never supported non-data CUE in cue.mod/module.cue; commands like `cue mod tidy` and `cue mod get` assumed plain CUE data so that they could modify some fields and write the file back to disk. Fixes #3138. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: If58c8d3a7b05a657543909bf9d1ebaaf4296d039 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194669 TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
- Loading branch information
Showing
2 changed files
with
71 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters