Author: jhb
Date: Wed Aug 30 18:22:52 2017
New Revision: 323025
URL: https://svnweb.freebsd.org/changeset/base/323025

Log:
  Read max_stack_flags from correct object.
  
  'obj' is not initialized here.
  
  Reviewed by:  kib
  MFC after:    1 week
  Sponsored by: DARPA / AFRL

Modified:
  head/libexec/rtld-elf/rtld.c

Modified: head/libexec/rtld-elf/rtld.c
==============================================================================
--- head/libexec/rtld-elf/rtld.c        Wed Aug 30 18:19:25 2017        
(r323024)
+++ head/libexec/rtld-elf/rtld.c        Wed Aug 30 18:22:52 2017        
(r323025)
@@ -571,7 +571,7 @@ _rtld(Elf_Addr *sp, func_ptr_type *exit_proc, Obj_Entr
        close(fd);
        if (obj_main == NULL)
            rtld_die();
-       max_stack_flags = obj->stack_flags;
+       max_stack_flags = obj_main->stack_flags;
     } else {                           /* Main program already loaded. */
        dbg("processing main program's program header");
        assert(aux_info[AT_PHDR] != NULL);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to