You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "Mike Jumper (Jira)" <ji...@apache.org> on 2023/10/13 19:50:00 UTC

[jira] [Created] (GUACAMOLE-1867) Add libguac convenience functions for memory management

Mike Jumper created GUACAMOLE-1867:
--------------------------------------

             Summary: Add libguac convenience functions for memory management
                 Key: GUACAMOLE-1867
                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1867
             Project: Guacamole
          Issue Type: Wish
            Reporter: Mike Jumper


As it's common throughout the Guacamole codebase to need to allocate memory involving multiple factors, such as width/stride, height, and bytes per pixel, or bits per sample, samples per second, and seconds per packet, it would be nice to provide convenience functions that make these allocations and associated calculations easy and verifiable.

Adding our own memory allocation functions would also allow us to smooth over platform-specific behavior of {{malloc()}} / {{calloc()}}, would allow for easy insertion of headers/footers around memory blocks if necessary for memory debugging, etc., and would open up the possibility of additional safeguards and sanity checks.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)