Commit 93d1f49
Allow user to override the Code Point Limit required by SnakeYaml
With this patch, a user may set the system property
'maxYamlCodePoints' in order to override the default 3MiB limit
configured in the org.yaml.snakeyaml package by default. This limit
was implemented to prevent certain Denial-of-Service (DOS) attacks,
but users should be given the opportunity to override this value for
valid configurations which exceed the limit, such as the Redfish
OpenAPI specification (developed by DMTF), which weighs in at 4.9MiB.
This patch was tested to work with openapi-generator-cli v6.3.0.
Signed-off-by: Ethan D. Twardy <[email protected]>1 parent 3574a63 commit 93d1f49
File tree
1 file changed
+5
-1
lines changed- modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
| 266 | + | |
| 267 | + | |
264 | 268 | | |
265 | 269 | | |
266 | 270 | | |
| |||
0 commit comments