mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-10-11 12:42:29 +02:00
Fix segfaults on watermarking in somme cases
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
### Changed
|
||||
- Boolean processing options such as `enlarge` and `extend` are properly parsed. `1`, `t`, `TRUE`, `true`, `True` are truthy, `0`, `f`, `F`, `FALSE`, `false`, `False` are falsy. All other values are treated as falsy and generate a warning message.
|
||||
|
||||
### Fixed
|
||||
- Fix segfaults on watermarking in somme cases
|
||||
|
||||
## [2.6.2] - 2019-11-11
|
||||
### Fixed
|
||||
- Fix `format` option in presets.
|
||||
|
@@ -252,6 +252,10 @@ func applyWatermark(img *vipsImage, wmData *imageData, opts *watermarkOptions, f
|
||||
return err
|
||||
}
|
||||
|
||||
if err := img.CopyMemory(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
wm := new(vipsImage)
|
||||
defer wm.Clear()
|
||||
|
||||
|
Reference in New Issue
Block a user