Skip to content
Snippets Groups Projects
  1. Jul 21, 2024
  2. May 30, 2024
  3. May 29, 2024
    • Robert Schmidt's avatar
      Use FORTIFY_SOURCE in release builds · 3b7c94f7
      Robert Schmidt authored
      gcc-14 warns when using FORTIFY_SOURCE in debug builds:
      
        /usr/include/features.h:414:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp]
        414 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
            |    ^~~~~~~
      
      Use it in release builds instead.
      3b7c94f7
    • Robert Schmidt's avatar
      Allocate correct size of bytes for call_process_id · 88e5f7ec
      Robert Schmidt authored
      call_process_id is a byte_string_t, but prior to this commit, we
      allocate data->len_cpid, which is likely not the right size; instead,
      use the sizeof operator to calculate the right size.
      
      This prevents one of these warnings, depending on compiler (version):
      
        /home/richie/flexric/src/agent/e2_agent.c: In function ‘generate_aindication’:
        /home/richie/flexric/src/agent/e2_agent.c:56:25: warning: allocation of insufficient size ‘8’ for type ‘byte_array_t’ with size ‘16’ [-Walloc-size]
           56 |     ind.call_process_id = malloc(sizeof(data->len_cpid) );
              |                         ^
      
        /oai-ran/openair2/E2AP/flexric/src/agent/e2_agent.c:58:30: error: array subscript 'byte_array_t[0]' is partly outside array bounds of 'unsigned char[8]' [-Werror=array-bounds]
          59  |     ind.call_process_id->buf = data->call_process_id;
              |     ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
        /oai-ran/openair2/E2AP/flexric/src/agent/e2_agent.c:56:27: note: object of size 8 allocated by 'malloc'
      88e5f7ec
  4. Apr 12, 2024
  5. Apr 10, 2024
  6. Apr 08, 2024
  7. Mar 25, 2024
  8. Mar 20, 2024
  9. Mar 19, 2024
  10. Mar 15, 2024
  11. Mar 07, 2024
  12. Mar 01, 2024
  13. Feb 26, 2024
  14. Feb 23, 2024
  15. Feb 22, 2024
  16. Feb 21, 2024
  17. Feb 20, 2024
  18. Feb 19, 2024
Loading