From bb28f4a0c4f457bc19ecfe550437644ebbc21a47 Mon Sep 17 00:00:00 2001 From: german77 Date: Sat, 23 Sep 2023 20:12:23 -0600 Subject: service: mii: Limit checks to string size --- src/core/hle/service/mii/mii_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/hle') diff --git a/src/core/hle/service/mii/mii_types.h b/src/core/hle/service/mii/mii_types.h index f43efd83c..08c6029df 100644 --- a/src/core/hle/service/mii/mii_types.h +++ b/src/core/hle/service/mii/mii_types.h @@ -614,7 +614,7 @@ struct Nickname { } std::size_t index = 1; - while (data[index] != 0) { + while (index < MaxNameSize && data[index] != 0) { index++; } while (index < MaxNameSize && data[index] == 0) { -- cgit v1.2.3