mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
fix heap buffer overflow
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
53385fdfea
commit
3967fde405
1 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ auto V1::createModFormat([[maybe_unused]] const QDir& index_dir,
|
|||
mod.loaders = mod_version.loaders;
|
||||
mod.mcVersions = mod_version.mcVersion;
|
||||
std::sort(mod.mcVersions.begin(), mod.mcVersions.end(),
|
||||
[](QString a, QString b) { return Version(std::move(a)) <= Version(std::move(b)); });
|
||||
[](QString a, QString b) { return Version(std::move(a)) < Version(std::move(b)); });
|
||||
mod.releaseType = mod_version.version_type;
|
||||
|
||||
mod.version_number = mod_version.version_number;
|
||||
|
|
@ -305,7 +305,7 @@ auto V1::getIndexForMod(const QDir& index_dir, QString slug) -> Mod
|
|||
}
|
||||
}
|
||||
std::sort(mod.mcVersions.begin(), mod.mcVersions.end(),
|
||||
[](QString a, QString b) { return Version(std::move(a)) <= Version(std::move(b)); });
|
||||
[](QString a, QString b) { return Version(std::move(a)) < Version(std::move(b)); });
|
||||
}
|
||||
}
|
||||
mod.version_number = table["x-prismlauncher-version-number"].value_or("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue