011-hotfixes.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. diff -Nur busybox-1.25.0.orig/archival/gzip.c busybox-1.25.0/archival/gzip.c
  2. --- busybox-1.25.0.orig/archival/gzip.c 2016-06-20 01:43:06.000000000 +0200
  3. +++ busybox-1.25.0/archival/gzip.c 2016-09-07 17:12:42.763524056 +0200
  4. @@ -2220,10 +2220,7 @@
  5. opt >>= ENABLE_GUNZIP ? 7 : 5; /* drop cfv[dt]qn bits */
  6. if (opt == 0)
  7. opt = 1 << 6; /* default: 6 */
  8. - /* Map 1..3 to 4 */
  9. - if (opt & 0x7)
  10. - opt |= 1 << 4;
  11. - opt = ffs(opt >> 3);
  12. + opt = ffs(opt >> 4); /* Maps -1..-4 to [0], -5 to [1] ... -9 to [5] */
  13. max_chain_length = 1 << gzip_level_config[opt].chain_shift;
  14. good_match = gzip_level_config[opt].good;
  15. max_lazy_match = gzip_level_config[opt].lazy2 * 2;
  16. diff -Nur busybox-1.25.0.orig/networking/libiproute/iproute.c busybox-1.25.0/networking/libiproute/iproute.c
  17. --- busybox-1.25.0.orig/networking/libiproute/iproute.c 2016-05-26 19:42:44.000000000 +0200
  18. +++ busybox-1.25.0/networking/libiproute/iproute.c 2016-09-07 17:12:46.235747275 +0200
  19. @@ -362,10 +362,9 @@
  20. req.r.rtm_scope = RT_SCOPE_NOWHERE;
  21. if (cmd != RTM_DELROUTE) {
  22. + req.r.rtm_scope = RT_SCOPE_UNIVERSE;
  23. if (RTPROT_BOOT != 0)
  24. req.r.rtm_protocol = RTPROT_BOOT;
  25. - if (RT_SCOPE_UNIVERSE != 0)
  26. - req.r.rtm_scope = RT_SCOPE_UNIVERSE;
  27. if (RTN_UNICAST != 0)
  28. req.r.rtm_type = RTN_UNICAST;
  29. }
  30. diff -Nur busybox-1.25.0.orig/networking/ntpd.c busybox-1.25.0/networking/ntpd.c
  31. --- busybox-1.25.0.orig/networking/ntpd.c 2016-06-06 02:26:04.000000000 +0200
  32. +++ busybox-1.25.0/networking/ntpd.c 2016-09-07 17:12:38.979280766 +0200
  33. @@ -2051,6 +2051,13 @@
  34. goto bail;
  35. }
  36. + /* Respond only to client and symmetric active packets */
  37. + if ((msg.m_status & MODE_MASK) != MODE_CLIENT
  38. + && (msg.m_status & MODE_MASK) != MODE_SYM_ACT
  39. + ) {
  40. + goto bail;
  41. + }
  42. +
  43. query_status = msg.m_status;
  44. query_xmttime = msg.m_xmttime;