2
0

270-fix-use-after-free.patch 256 B

1234567891011
  1. --- a/libopkg/opkg_download.c
  2. +++ b/libopkg/opkg_download.c
  3. @@ -335,7 +335,7 @@ opkg_prepare_url_for_install(const char
  4. hash_insert_pkg(pkg, 1);
  5. if (namep) {
  6. - *namep = pkg->name;
  7. + *namep = xstrdup(pkg->name);
  8. }
  9. return 0;
  10. }