[Git][ghc/ghc][master] Reverse arguments to stgCallocBytes (fix #24828)

Marge Bot (@marge-bot) gitlab at gitlab.haskell.org
Wed May 22 04:33:03 UTC 2024



Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
6838a7c3 by Sylvain Henry at 2024-05-22T00:32:23-04:00
Reverse arguments to stgCallocBytes (fix #24828)

- - - - -


1 changed file:

- rts/linker/Elf.c


Changes:

=====================================
rts/linker/Elf.c
=====================================
@@ -711,7 +711,7 @@ ocGetNames_ELF ( ObjectCode* oc )
 
    ASSERT(symhash != NULL);
 
-   sections = (Section*)stgCallocBytes(sizeof(Section), shnum,
+   sections = (Section*)stgCallocBytes(shnum, sizeof(Section),
                                        "ocGetNames_ELF(sections)");
    oc->sections = sections;
    oc->n_sections = shnum;



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6838a7c32ca29b5d44adc9d6280d3a960f31be7c

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/6838a7c32ca29b5d44adc9d6280d3a960f31be7c
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240522/b900b7cd/attachment.html>


More information about the ghc-commits mailing list