This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/14839] New: Access behind terminating nullbyte of the environment?


http://sourceware.org/bugzilla/show_bug.cgi?id=14839

             Bug #: 14839
           Summary: Access behind terminating nullbyte of the environment?
           Product: glibc
           Version: 2.13
            Status: NEW
          Severity: minor
          Priority: P2
         Component: dynamic-link
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jannhorn@googlemail.com
    Classification: Unclassified


>From rtld.c:

    case 10:
      /* Mask for the important hardware capabilities.  */
      if (memcmp (envline, "HWCAP_MASK", 10) == 0)
        GLRO(dl_hwcap_mask) = __strtoul_internal (&envline[11], NULL,
                              0, 0);

As far as I can see, there is no check that makes sure that the tenth byte
isn't already the terminating nullbyte.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]