Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 298912 - sys-apps/net-tools-1.60_p20090728014017-r1: a few "QA's"
Summary: sys-apps/net-tools-1.60_p20090728014017-r1: a few "QA's"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-29 20:40 UTC by Rafał Mużyło
Modified: 2009-12-31 23:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
first of the corrected patches (0007-corrected.patch,1.76 KB, patch)
2009-12-30 12:55 UTC, Rafał Mużyło
Details | Diff
second corrected patch (0010-corrected.patch,12.48 KB, patch)
2009-12-30 12:56 UTC, Rafał Mużyło
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2009-12-29 20:40:22 UTC
Looking at the build.log, I think it would be nice
to address some of the compiler warnings, mostly two groups of them:
interface.c:*: warning: integer constant is too large for ‘long’ type
(this one (on x86) comes from too thorough 0010-revert-621a2f37633~ee5783e0f1141e66d-for-.patch - those 'ull' should have stay there)
In function ‘strncat’,
    inlined from ‘*_do_one’ at netstat.c:*:
/usr/include/bits/string3.h:153: warning: call to __builtin___strncat_chk might overflow destination buff
(AFAICT, from technical POV those warnings are correct - size parameter
should probably be something like 128-strlen(local_addr)-1
- this time it's 0007-prevent-overflows-in-interface-buffers.patch)
Comment 1 Rafał Mużyło 2009-12-29 21:08:01 UTC
..or more correctly 'sizeof(local_addr)-strlen(local_addr)-1'
Comment 2 SpanKY gentoo-dev 2009-12-30 03:01:33 UTC
feel free to post actual patches instead of asking others to fix these things.  they are pretty harmless last i looked.
Comment 3 Rafał Mużyło 2009-12-30 12:55:43 UTC
Created attachment 214611 [details, diff]
first of the corrected patches

SpanKY, while what you say is true (to a point),
do note that both of those patches are yours
and seem to be Gentoo-only, as I don't see them on BerliOS.

The corrected patches work, if they replace their old versions
in patches tarball.
Comment 4 Rafał Mużyło 2009-12-30 12:56:28 UTC
Created attachment 214613 [details, diff]
second corrected patch
Comment 5 Rafał Mużyło 2009-12-30 12:59:27 UTC
Note, that while 0010 is cosmetic only,
old 0007 didn't prevent that overflow
(that value would work for strncpy, not strncat,
also according to manpage strncat already adds that '\0'
at the end of the string)
Comment 6 SpanKY gentoo-dev 2009-12-31 19:28:46 UTC
it isnt "cosmetic".  perhaps if you read up on the history, you'd know that changing the output breaks packages and people's scripts.

further, you'd know that the strncat isnt Gentoo-specific, nor did i have anything to do with its creation.  but i guess it's easier to just blame people then figure out the real history.

ive updated the patches in the overlay
Comment 7 Rafał Mużyło 2009-12-31 23:23:36 UTC
I was going by "From:" line in those git patches.

On a semi-related note:
I think we're beginning to agree, that we mutually
dislike each other.