imazen / imageflow

High-performance image manipulation for web servers. Includes imageflow_server, imageflow_tool, and libimageflow
https://docs.imageflow.io/
GNU Affero General Public License v3.0
4.14k stars 140 forks source link

Fuzzing bugs #609

Closed lilith closed 1 year ago

lilith commented 1 year ago
Imageflow.Bindings.ImageflowException
ArgumentInvalid: LayoutError: ValueScalingFailed { ratio: 1.334448160535117, basis: -100, invalid_result: -133.44481605351172 } at
imageflow_core\src\flow\nodes\command_string.rs:96:61
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/flow/nodes/command_string.rs#L96
imageflow_core\src\flow\execution_engine.rs:294:29
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/flow/execution_engine.rs#L294
imageflow_core\src\flow\execution_engine.rs:400:89
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/flow/execution_engine.rs#L400
imageflow_core\src\context.rs:419:59
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/context.rs#L419
imageflow_core\src\context_methods.rs:50:68
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/context_methods.rs#L50
Active node:
NodeDebugInfo {
    stable_id: -1,
    params: Json(
        CommandString {
            kind: ImageResizer4,
            value: "format=webp&h=-100&maxheight=2&maxwidth=3300&mode=stretch&quality=1&rotate=270",
            decode: None,
            encode: Some(
                1,
            ),
            watermarks: None,
        },
    ),
    index: NodeIndex(0),
}
lilith commented 1 year ago
ArgumentInvalid: LayoutError: ValueScalingFailed { ratio: 1.334448160535117, basis: -100, invalid_result: -133.44481605351172 } at
imageflow_core\src\flow\nodes\command_string.rs:96:61
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/flow/nodes/command_string.rs#L96
imageflow_core\src\flow\execution_engine.rs:294:29
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/flow/execution_engine.rs#L294
imageflow_core\src\context.rs:419:59
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/context.rs#L419
imageflow_core\src\context_methods.rs:50:68
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/context_methods.rs#L50
Active node:
NodeDebugInfo {
    stable_id: 1,
    params: Json(
        CommandString {
            kind: ImageResizer4,
            value: "crop=0,0,0,0&h=-100&ignoreicc=false&maxwidth=2",
            decode: Some(
                0,
            ),
            encode: Some(
                1,
            ),
            watermarks: None,
        },
    ),
    index: NodeIndex(0),
}
lilith commented 1 year ago
Imageflow.Bindings.ImageflowException
ArgumentInvalid: LayoutError: ValueScalingFailed { ratio: 1.334448160535117, basis: -100, invalid_result: -133.44481605351172 } at
imageflow_core\src\flow\nodes\command_string.rs:96:61
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/flow/nodes/command_string.rs#L96
imageflow_core\src\flow\execution_engine.rs:294:29
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/flow/execution_engine.rs#L294
imageflow_core\src\context.rs:419:59
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/context.rs#L419
imageflow_core\src\context_methods.rs:50:68
https://github.com/imazen/imageflow/blob/70945c00267a99d678fb0d53e675dc7827e12fe2/imageflow_core/src/context_methods.rs#L50
Active node:
NodeDebugInfo {
    stable_id: 1,
    params: Json(
        CommandString {
            kind: ImageResizer4,
            value: "crop=0,0,0,0&format=webp&h=-100&ignoreicc=true&maxwidth=-100&rotate=270&w=40",
            decode: Some(
                0,
            ),
            encode: Some(
                1,
            ),
            watermarks: None,
        },
    ),
    index: NodeIndex(0),
}
lilith commented 1 year ago

Fixed in latest.