cagebreak/fuzz/execl_override.c
2024-01-01 01:07:15 +01:00

31 lines
630 B
C

// Copyright 2020 - 2024, project-repo and the cagebreak contributors
// SPDX-License-Identifier: MIT
// This file is used by the fuzzer in order to prevent executing shell commands.
#define _GNU_SOURCE
#include "../output.h"
#include <cairo.h>
#include <cairo/cairo.h>
#include <stdlib.h>
#include <wlr/render/wlr_renderer.h>
int
fork(void) {
return 1;
}
void
wlr_texture_get_size(struct wlr_texture *texture, int *width, int *height) {
if(width != NULL) {
*width = 0;
}
if(height != NULL) {
*height = 0;
}
}
cairo_surface_t *
cairo_image_surface_create(cairo_format_t fmt, int width, int height) {
return NULL;
}