diff options
author | xuri <xuri.me@gmail.com> | 2021-08-15 00:06:40 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-08-15 00:06:40 +0800 |
commit | 48c16de8bf74df0fa94a30d29e2e7e3446d48433 (patch) | |
tree | 329a2e4ab896982581bd348a1700d75aeb40a517 /xmlDrawing.go | |
parent | f6f14f507ee1adf4883cb1b12f27932a63afb286 (diff) |
Improve security and simplify code
- Make variable name more semantic
- Reduce cyclomatic complexities for the formula calculate function
- Support specified unzip size limit on open file options, avoid zip bombs vulnerability attack
- Typo fix for documentation and error message
Diffstat (limited to 'xmlDrawing.go')
-rw-r--r-- | xmlDrawing.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmlDrawing.go b/xmlDrawing.go index 4e35fcf..b49ae9d 100644 --- a/xmlDrawing.go +++ b/xmlDrawing.go @@ -94,6 +94,7 @@ const ( // Excel specifications and limits const ( + UnzipSizeLimit = 1000 << 24 StreamChunkSize = 1 << 24 MaxFontFamilyLength = 31 MaxFontSize = 409 |