A NOTE has been added to this issue. ====================================================================== https://www.austingroupbugs.net/view.php?id=1644 ====================================================================== Reported By: bastien Assigned To: ====================================================================== Project: 1003.1(2016/18)/Issue7+TC2 Issue ID: 1644 Category: System Interfaces Type: Enhancement Request Severity: Comment Priority: normal Status: New Name: Bastien Roucaries Organization: debian User Reference: Section: dlsym - get the address of a symbol from a symbol table handle Page Number: Application usage Line Number: all Interp Status: --- Final Accepted Text: ====================================================================== Date Submitted: 2023-03-22 09:52 UTC Last Modified: 2023-03-22 15:43 UTC ====================================================================== Summary: void * to function pointer is described in annex J of C standard (informative). ======================================================================
---------------------------------------------------------------------- (0006223) wlerch (reporter) - 2023-03-22 15:43 https://www.austingroupbugs.net/view.php?id=1644#c6223 ---------------------------------------------------------------------- Why? The same wording would mean the same requirements, wouldn't it? Why would you want to impose unnecessary requirements that lead to potential security risks? dlsym does not need to allow data to be invoked as a function. The pointer returned by it does not need to point to data. The only requirement that is necessary is that it can be converted to a pointer to function, resulting in a pointer that can be used to call the function. Issue History Date Modified Username Field Change ====================================================================== 2023-03-22 09:52 bastien New Issue 2023-03-22 09:52 bastien Name => Bastien Roucaries 2023-03-22 09:52 bastien Organization => debian 2023-03-22 09:52 bastien Section => dlsym - get the address of a symbol from a symbol table handle 2023-03-22 09:52 bastien Page Number => Application usage 2023-03-22 09:52 bastien Line Number => all 2023-03-22 13:24 wlerch Note Added: 0006220 2023-03-22 15:15 bastien Note Added: 0006222 2023-03-22 15:43 wlerch Note Added: 0006223 ======================================================================