Skip to content

Allocate byte[] lazily for longer Smile binary data payloads (raw) #260

Description

@cowtowncoder

(from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32180)

Looks like eager allocation is used for Smile binary payload if using "raw"/native embedding.
Similar to #186, this should be only used for relatively short payloads to avoid potential for DoS by attacker specifying allegedly large data size but only sending minimal partial message (essentially just marker, length and maybe a bit or two)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fuzzIssue found by OssFuzzsmile

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions