SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit e35c22d4059a70c2d79409adc0b3224d121b66bf parent 2e4a6380773b40180758ebffcf2fc6859164aad4 Author: Lior Halphon <LIJI32@gmail.com> Date: Thu, 17 Sep 2020 23:47:35 +0300 Fix a potential single byte overflow Diffstat:
| M | Core/debugger.c | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Core/debugger.c b/Core/debugger.c @@ -132,7 +132,7 @@ static const char *value_to_string(GB_gameboy_t *gb, uint16_t value, bool prefer } /* Avoid overflow */ - if (symbol && strlen(symbol->name) > 240) { + if (symbol && strlen(symbol->name) >= 240) { symbol = NULL; } @@ -172,7 +172,7 @@ static const char *debugger_value_to_string(GB_gameboy_t *gb, value_t value, boo } /* Avoid overflow */ - if (symbol && strlen(symbol->name) > 240) { + if (symbol && strlen(symbol->name) >= 240) { symbol = NULL; }
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.