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/18924] New: More helpful warning message for ELF symbol size discrepancies


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

            Bug ID: 18924
           Summary: More helpful warning message for ELF symbol size
                    discrepancies
           Product: glibc
           Version: 2.23
            Status: NEW
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: fweimer at redhat dot com
  Target Milestone: ---

We currently use this warning (at least on x86_64):

%s: Symbol `%s' has different size in shared object, consider re-linking\n";

This evidently does not do its job because people (including, until today, me)
think it's harmless:

https://bugzilla.mozilla.org/show_bug.cgi?id=496993#c1
https://lists.fedoraproject.org/pipermail/devel/2015-September/214128.html

In reality, the symbol value is truncated to the short of both options.  This
can lead to overruns as a result of an incorrect sizeof value or a missing
sentinel at the end of an array.

A reworded warning message should make this clearer.  It's probably too late
now to refuse to start such broken programs.

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