Skip to content
Snippets Groups Projects
  1. Jul 28, 2024
  2. Jul 26, 2024
  3. Jul 19, 2024
  4. Jun 21, 2024
  5. Jun 11, 2024
  6. Mar 24, 2024
  7. Mar 19, 2024
  8. Mar 15, 2024
  9. Feb 28, 2024
  10. Feb 27, 2024
  11. Dec 29, 2023
  12. Dec 16, 2023
    • Vasiluță Mihai-Alexandru's avatar
      cg2: Use strdup for saving cf_cg_root value from file · 5fd00811
      Vasiluță Mihai-Alexandru authored
      It seems that on Fedora systems, probably due to some hardening
      features, memory `malloc`-ed by the `getline()` call when trying to
      parse the file (when the cgroup root path is in auto mode) is improperly
      handled after the clone call. Instead of directly setting the pointer to
      that memory, using `strdup` again seems to do the trick and properly
      allocate memory just for the string.
      
      In addition, this makes the setup of the cf_cg_root variable consistent
      with config.c, in which it is also strdup-ed in the `cf_string` function.
  13. Oct 27, 2023
  14. Oct 06, 2023
  15. Mar 13, 2023
Loading