You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix FileAccessPack::get_buffer will update pos past the length of file
(cherry picked from commit 68a6fe81ab)
This commit is contained in:
@@ -327,7 +327,7 @@ uint64_t FileAccessPack::get_buffer(uint8_t *p_dst, uint64_t p_length) const {
|
|||||||
to_read = (int64_t)pf.size - (int64_t)pos;
|
to_read = (int64_t)pf.size - (int64_t)pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
pos += p_length;
|
pos += to_read;
|
||||||
|
|
||||||
if (to_read <= 0) {
|
if (to_read <= 0) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user