[Git][wine/wine][master] 2 commits: msvcp90: Fix vector_base_v4 allocation sizes.
Alexandre Julliard pushed to branch master at wine / wine Commits: c33ee79f by Yuxuan Shui at 2025-07-01T21:47:38+02:00 msvcp90: Fix vector_base_v4 allocation sizes. Before this commit, this->allocator appears to be given number of bytes as allocation size in msvcp90/details.c. But in msvcp120/tests/msvcp120.c, the provided allocator concurrent_vector_int_alloc, this size is multiplied by sizeof(int) again. A small change to log the size from concurrent_vector_int_alloc shows our size is exactly 4x native. I think that's enough evidence that the size here is meant to be No. elements. - - - - - 16720b23 by Yuxuan Shui at 2025-07-01T21:47:38+02:00 msvcp90: Fix calculation of segment addresses in vector. Casting this->segment[seg] to BYTE** cause the offset to be multiplied by the size of the pointer, which would be much larger than what's allocated. - - - - - 1 changed file: - dlls/msvcp90/details.c View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/a4e9d1496313bfec8cd9128d4d9046... -- View it on GitLab: https://gitlab.winehq.org/wine/wine/-/compare/a4e9d1496313bfec8cd9128d4d9046... You're receiving this email because of your account on gitlab.winehq.org.
participants (1)
-
Alexandre Julliard (@julliard)