[PATCH 0/1] MR7249: wbemprox: Fix allocation size.
From: Hans Leidekker <hans(a)codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=57787 --- dlls/wbemprox/builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wbemprox/builtin.c b/dlls/wbemprox/builtin.c index 8145ef08b2e..b6bc1416d0c 100644 --- a/dlls/wbemprox/builtin.c +++ b/dlls/wbemprox/builtin.c @@ -3320,7 +3320,7 @@ static struct record_pnpentity *get_pnp_entities( UINT *count ) if (++i > nb_allocated) { nb_allocated *= 2; - if ((tmp = realloc( ret, nb_allocated ))) ret = tmp; + if ((tmp = realloc( ret, nb_allocated * sizeof(*ret) ))) ret = tmp; else { while (--i) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7249
Hi, It looks like your patch introduced the new failures shown below. Please investigate and fix them before resubmitting your patch. If they are not new, fixing them anyway would help a lot. Otherwise please ask for the known failures list to be updated. The tests also ran into some preexisting test failures. If you know how to fix them that would be helpful. See the TestBot job for the details: The full results can be found at: https://testbot.winehq.org/JobDetails.pl?Key=151205 Your paranoid android. === debian11b (64 bit WoW report) === wbemprox: query.c:2014: Test failed: unexpected variant type 0x1
This merge request was approved by Jinoh Kang. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7249
participants (4)
-
Hans Leidekker -
Hans Leidekker (@hans) -
Jinoh Kang (@iamahuman) -
Marvin