mirror of
https://github.com/LowganDev/PlayfinPS4.git
synced 2026-10-18 10:00:58 +02:00
14 lines
504 B
C++
14 lines
504 B
C++
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
#include "ui/images.hpp"
|
|
|
|
// Pictures come from the server: any bytes must decode or be refused, never crash.
|
|
extern "C" int LLVMFuzzerTestOneInput(const std::uint8_t* data, std::size_t size) {
|
|
const std::string bytes(reinterpret_cast<const char*>(data), size);
|
|
(void)playfin::ui::decodeImage(bytes, 64, 64, playfin::ui::ImageShape::Whole);
|
|
(void)playfin::ui::decodeImage(bytes, 32, 48, playfin::ui::ImageShape::Crop);
|
|
return 0;
|
|
}
|