Fixes #3375 - I'll also fix the oss-fuzz build for this in a PR Signed-off-by: Sudhakar Verma <sudhakar.verma@canonical.com>