1. 12 Aug, 2024 3 commits
    • Guido Casati's avatar
      Fix direct leak of memory allocate by deliver_sdu_srb with itti_malloc · 3d2b32ac
      Guido Casati authored
      * The RRC task is freeing the ITTI message but the message members that are allocated separetely still need to be freed
      
      > Direct leak of 470 byte(s) in 6 object(s) allocated from:
          >0 0x7ffff74b4a57 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
          >1 0x55555721f117 in itti_malloc /common/utils/ocp_itti/intertask_interface.cpp:64
          >2 0x555556f2356c in deliver_sdu_srb /openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c:775
          >3 0x555556f4e10e in nr_pdcp_entity_recv_pdu /openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c:184
          >4 0x555556f278ad in do_pdcp_data_ind /openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c:285
          >5 0x555556f278ad in pdcp_data_ind_thread /openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c:307
          >6 0x7ffff5e94ac2 in start_thread nptl/pthread_create.c:442
      3d2b32ac
    • Guido Casati's avatar
      Fix strdup-related memory leak in nr-softmodem · a59a69d5
      Guido Casati authored
      * strdup is returning a malloced string which needs to be freed after use
      
      > Direct leak of 90 byte(s) in 1 object(s) allocated from:
      	> 0 0x7ffff745b9a7 in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:454
      	> 1 0x5555591598a3 in main /executables/nr-softmodem.c:667
      	> 2 0x7ffff5e29d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
      a59a69d5
    • Guido Casati's avatar
      Fix memory leak in NR UE nr_rrc_ue_process_ueCapabilityEnquiry · 6435ed30
      Guido Casati authored
      * allocate memory in heap for the struct ue_CapabilityRAT_Container used locally for buffer encoding
      * free the struct members only for the ul_dcch_msg allocated on the stack
      
      > Direct leak of 40 byte(s) in 1 object(s) allocated from:
          > 0 0x7ffff74b4a57 in __interceptor_calloc ../../../../src/libsanitizer/asan/asan_malloc_linux.cpp:154
          > 1 0x555556f7a89f in nr_rrc_ue_process_ueCapabilityEnquiry /openair2/RRC/NR_UE/rrc_UE.c:1861
          > 2 0x555556fa4d85 in nr_rrc_ue_decode_dcch /openair2/RRC/NR_UE/rrc_UE.c:1650
          > 3 0x555556fbb33c in rrc_nrue /openair2/RRC/NR_UE/rrc_UE.c:1790
          > 4 0x555556fc4b2e in rrc_nrue_task /openair2/RRC/NR_UE/rrc_UE.c:1716
          > 5 0x7ffff5e94ac2 in start_thread nptl/pthread_create.c:442
      6435ed30
  2. 08 Aug, 2024 2 commits
    • Guido Casati's avatar
      fb554dc6
    • Guido Casati's avatar
      Fix memory leak in RCconfig_nr_parallel · 6e7ea5ce
      Guido Casati authored
      * strdup() function is returning a malloced string
        which must be freed after use
      * replace the strdup with direct use of strings to avoid heap allocation
      
      > Direct leak of 23 byte(s) in 1 object(s) allocated from:
          > 0 0x7ffff745b9a7 in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:454
          > 1 0x555559e36f87 in RCconfig_nr_parallel /openair2/GNB_APP/gnb_config.c:2054
          > 2 0x555559e38ea3 in NRRCConfig /openair2/GNB_APP/gnb_config.c:2097
          > 3 0x555559155542 in get_options /executables/nr-softmodem.c:423
          > 4 0x555559155542 in main /executables/nr-softmodem.c:623
          > 5 0x7ffff5e29d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
      
      > Direct leak of 14 byte(s) in 1 object(s) allocated from:
          > 0 0x7ffff745b9a7 in __interceptor_strdup ../../../../src/libsanitizer/asan/asan_interceptors.cpp:454
          > 1 0x555559e370c5 in RCconfig_nr_parallel /openair2/GNB_APP/gnb_config.c:2063
          > 2 0x555559e38ea3 in NRRCConfig /openair2/GNB_APP/gnb_config.c:2097
          > 3 0x555559155542 in get_options /executables/nr-softmodem.c:423
          > 4 0x555559155542 in main /executables/nr-softmodem.c:623
          > 5 0x7ffff5e29d8f in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
      6e7ea5ce
  3. 30 Jul, 2024 15 commits
  4. 29 Jul, 2024 4 commits
  5. 26 Jul, 2024 16 commits