fix_infinite_loop_tests.patch 535 B

1234567891011121314151617
  1. diff --git a/com32/lib/syslinux/tests/load_linux.c b/com32/lib/syslinux/tests/load_linux.c
  2. index ed973841..751b8b24 100644
  3. --- a/com32/lib/syslinux/tests/load_linux.c
  4. +++ b/com32/lib/syslinux/tests/load_linux.c
  5. @@ -38,8 +38,10 @@ int syslinux_shuffle_boot_rm(struct syslinux_movelist *fraglist,
  6. while (ml) {
  7. addr_t cmdline_addr, last_lowmem_addr;
  8. - if (ml->src != __test_cmdline)
  9. + if (ml->src != __test_cmdline) {
  10. + ml = ml->next;
  11. continue;
  12. + }
  13. last_lowmem_addr = __test_cmdline_addr;
  14. cmdline_addr = ml->dst;