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 nscd/17460] New: "nscd --help" crashes with segmentation fault on 32-bit machine


https://sourceware.org/bugzilla/show_bug.cgi?id=17460

            Bug ID: 17460
           Summary: "nscd --help" crashes with segmentation fault on
                    32-bit machine
           Product: glibc
           Version: 2.20
            Status: NEW
          Severity: normal
          Priority: P2
         Component: nscd
          Assignee: unassigned at sourceware dot org
          Reporter: mikel at mikelr dot com
                CC: drepper.fsp at gmail dot com

Overview:
Printing the nscd help message with "nscd --help" fails part way through the
message with a 
segmentation fault. Reproducible on a 32-bit architecture.

Steps to Reproduce:
1) nscd --help

Actual Results:
$ nscd --help
Usage: nscd [OPTION...]
Name Service Cache Daemon.
[Lines omitted]
  -?, --help                 Give this help list
      --usage                Give a short usage message
Segmentation fault

Expected Results:
Help message displays without crashing.

Build:
glibc-2.20
i686-pc-linux-gnu
../glibc-2.20/configure --prefix=/usr --enable-obsolete-rpc

Additional Information:
There is a buffer overflow when printing the supported tables.
The memory allocated to hold the concatenated string is allocated with a size
of the pointer array.
This allocation is of insufficient length to hold the strings themselves.

-- 
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]