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 authored and doZennn committed Jul 29, 2024
1 parent 0ee9765 commit 11495d3
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 11495d3

Please sign in to comment.