Skip to content

Commit

Permalink
prevent buffer overrun when fetching non-steam apps
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan200101 committed Jul 28, 2024
1 parent 8e531a1 commit 822bb00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sgdboop.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ struct nonSteamApp* getNonSteamApps(int includeMods) {
uint64_t intBytes[4];

// Parse the vdf content
while (strstr_i(parsingChar, "appname") > 0) {
while ((parsingChar - fileContent) < filesize && strstr_i(parsingChar, "appname") > 0) {

uint64_t appid_old = 0;
uint64_t appid = 0;
Expand Down

0 comments on commit 822bb00

Please sign in to comment.