[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2017-10-28 Thread Bug Watch Updater
Launchpad has imported 4 comments from the remote bug at
https://bugzilla.redhat.com/show_bug.cgi?id=834447.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2012-06-21T21:54:09+00:00 Alex wrote:

glibc fixed a bug in 2010 in which htons() would give a conversion
warning when compiled with -Wconversion due to the implementation of the
byte-swapping functions. Unfortunately, this fix was only for x86/x86_64
platforms. The fix has now been updated to include the generic byteswap
functions.

Please apply this patch to the glibc in Fedora.

For reference, please see
http://sourceware.org/bugzilla/show_bug.cgi?id=12194

Reply at:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1016349/comments/5


On 2012-06-21T22:02:51+00:00 Alex wrote:

*** Bug 834449 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1016349/comments/6


On 2012-06-21T22:09:52+00:00 Alex wrote:

*** Bug 834450 has been marked as a duplicate of this bug. ***

Reply at:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1016349/comments/7


On 2012-06-21T23:29:54+00:00 Jeff wrote:

I just resynced with the upstream sources which include a fix for this
problem.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1016349/comments/8


** Changed in: glibc (Fedora)
   Status: Unknown => Fix Released

** Changed in: glibc (Fedora)
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2013-08-28 Thread Launchpad Bug Tracker
** Branch linked: lp:~ubuntu-branches/ubuntu/precise/eglibc/precise-
proposed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2013-06-25 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/eglibc

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2012-11-14 Thread Adam Conrad
This bug was fixed in the package eglibc - 2.15-0ubuntu10.3

---
eglibc (2.15-0ubuntu10.3) precise; urgency=low

  * Backport fixes for dbl-64 and ldbl-128 issues (LP: #1000498)
  * Backport another FMA support patch from glibc master branch.

eglibc (2.15-0ubuntu10.2) precise-security; urgency=low

  * SECURITY UPDATE: stack buffer overflow in vfprintf handling
(LP: #1031301)
- debian/patches/any/CVE-2012-3406.patch: switch to malloc when
  array grows too large to handle via alloca extension
- CVE-2012-3406
  * SECURITY UPDATE: stdlib strtod integer/buffer overflows
- debian/patches/any/CVE-2012-3480.patch: rearrange calculations
  and modify types to void integer overflows
- CVE-2012-3480

eglibc (2.15-0ubuntu10.1) precise; urgency=low

  * Backport fix from 2.16 to fix htons() conversion errors on non-x86
architectures, by correctly casting to uint16_t (LP: #1016349)
  * Restore missing AT_EMPTY_PATH definition in fnctl.h (LP: #1010069)
  * Backport FMA4/AVX detection from glibc 2.16 (LP: #956051, #979003)
  * Backport fixups to AVX-using code to match the detection backport.
  * Backport fix from 2.16 for sscanf/realloc deadlock (LP: #1028038)
  * Backport for bogus FPE on underflow for exp(double) (LP: #1007457)
 -- Adam Conrad adcon...@ubuntu.com Wed, 03 Oct 2012 15:58:02 -0600


** Changed in: eglibc (Ubuntu Precise)
   Status: Fix Committed = Fix Released

** CVE added: http://www.cve.mitre.org/cgi-
bin/cvename.cgi?name=2012-3406

** CVE added: http://www.cve.mitre.org/cgi-
bin/cvename.cgi?name=2012-3480

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2012-10-17 Thread Adam Conrad
Verified that this is fixed in precise-proposed.

** Tags removed: verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2012-09-12 Thread Chris J Arges
** Description changed:

+ [Impact]
+ htons() on non x86 platforms is missing a cast to uint16_t which causes FTBFS 
of mosh on armel and armhf.
+ 
+ [Development Fix]
+ This has been fixed in eglibc in Quantal.
+ 
+ [Stable Fix]
+ A fix can be backported from the Quantal development version into Precise.
+ 
+ [Test Case]
+ See https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1016349/comments/2
+ On how to reproduce with a C program.
+ 
+ [Regression Potential]
+ This patch affects some of the generic byteswaping code in eglibc. The fix 
for x86 arches was already completed years ago, and this patch fixes is for 
other arches.
+ 
+ --
+ 
  The definition of htons() on platforms other than i386 and amd64 is
  missing a cast to uint16_t, which caused this FTBFS of mosh on armel and
  armhf:
  
  https://launchpad.net/ubuntu/+source/mosh/1.2.1-1ubuntu1/+build/3582950
  network.cc:76:28: error: narrowing conversion of '({...})' from 'unsigned 
int' to 'uint16_t {aka short unsigned int}' inside { } is ill-formed in C++11 
[-Werror=narrowing]
  network.cc:76:50: error: narrowing conversion of '({...})' from 'unsigned 
int' to 'uint16_t {aka short unsigned int}' inside { } is ill-formed in C++11 
[-Werror=narrowing]
  
  (We didn’t see this before because this warning is new in GCC 4.7.)
  
  This was fixed for glibc 2.16 in
  
http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=2174c6dd8555f654c30df2f8f3321b69e0f736f8

** Changed in: eglibc (Ubuntu Precise)
 Assignee: (unassigned) = Adam Conrad (adconrad)

** Changed in: eglibc (Ubuntu Precise)
   Importance: Undecided = Medium

** Changed in: eglibc (Ubuntu Precise)
   Status: New = In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2012-09-12 Thread Clint Byrum
Hello Anders, or anyone else affected,

Accepted eglibc into precise-proposed. The package will build now and be
available at http://launchpad.net/ubuntu/+source/eglibc/2.15-0ubuntu10.1
in a few hours, and then in the -proposed repository.

Please help us by testing this new package.  See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to
enable and use -proposed.  Your feedback will aid us getting this update
out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from
verification-needed to verification-done.  If it does not, change the
tag to verification-failed.  In either case, details of your testing
will help us make a better decision.

Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification .  Thank you in
advance!

** Changed in: eglibc (Ubuntu Precise)
   Status: In Progress = Fix Committed

** Tags added: verification-needed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2012-08-09 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/eglibc

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2012-08-09 Thread Launchpad Bug Tracker
This bug was fixed in the package eglibc - 2.15-0ubuntu16

---
eglibc (2.15-0ubuntu16) quantal; urgency=low

  * Backport fix from 2.16 to fix htons() conversion errors on non-x86
architectures, by correctly casting to uint16_t (LP: #1016349)
  * Restore missing AT_EMPTY_PATH definition in fnctl.h (LP: #1010069)
  * Backport FMA4/AVX detection from glibc 2.16 (LP: #956051, #979003)
  * Backport fixups to AVX-using code to match the detection backport.
 -- Adam Conrad adcon...@ubuntu.com   Thu, 09 Aug 2012 15:15:53 -0600

** Changed in: eglibc (Ubuntu)
   Status: Confirmed = Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2012-07-24 Thread Adam Conrad
** Also affects: eglibc (Ubuntu Precise)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2012-06-21 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: eglibc (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1016349] Re: htons() returns wrong type on non-{i386, amd64} platforms

2012-06-21 Thread Bug Watch Updater
Launchpad has imported 5 comments from the remote bug at
http://sourceware.org/bugzilla/show_bug.cgi?id=12194.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2010-11-05T07:03:34+00:00 Johan Persson wrote:

The following (legitimate) code will generate a warning when both -O2 and 
-Wconversion is enabled but not when only -Wconversion is enabled. 

Code:
#include arpa/inet.h
// Nonsense code to illustrate problem
int main(void) {
uint16_t portnbr=0;
uint16_t n_portnbr = htons(portnbr);
exit(0);
}

With optimization


$ gcc -std=gnu99 -Wconversion -Werror -O2 -c tsthtons.c
cc1: warnings being treated as errors
tsthtons.c: In function ‘main’:
tsthtons.c:6: error: conversion to ‘short unsigned int’ from ‘int’ may alter 
its value


and without


$gcc -std=gnu99 -Wconversion -Werror  -c tsthtons.c
$

in both cases

gcc --version
gcc (SUSE Linux) 4.4.1 [gcc-4_4-branch revision 150839]
Copyright (C) 2009 Free Software Foundation, Inc.


and gnu clib v2.10.1

Reply at: https://bugs.launchpad.net/eglibc/+bug/1016349/comments/0


On 2010-11-10T07:54:40+00:00 Drepper-fsp wrote:

Changed in git.

Reply at: https://bugs.launchpad.net/eglibc/+bug/1016349/comments/1


On 2012-06-20T05:56:27+00:00 Anders Kaseorg wrote:

Shouldn’t the same change
(http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=69da074d7adfab7b57004a0dea9403a928e310a5)
be applied to sysdeps/s390/bits/byteswap.h and the generic
bits/byteswap.h?

Reply at: https://bugs.launchpad.net/eglibc/+bug/1016349/comments/2


On 2012-06-20T07:19:45+00:00 Aj-suse wrote:

thanks, patch send: http://sourceware.org/ml/libc-
alpha/2012-06/msg00550.html

Reply at: https://bugs.launchpad.net/eglibc/+bug/1016349/comments/3


On 2012-06-21T13:52:12+00:00 Aj-suse wrote:

Fixed for glibc 2.16 now with:

commit 2174c6dd8555f654c30df2f8f3321b69e0f736f8
Author: Andreas Jaeger a...@suse.de
Date:   Thu Jun 21 15:49:33 2012 +0200

Avoid -Wconversion warning for htons

Reply at: https://bugs.launchpad.net/eglibc/+bug/1016349/comments/4


** Changed in: eglibc
   Status: Unknown = Fix Released

** Changed in: eglibc
   Importance: Unknown = Medium

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1016349

Title:
  htons() returns wrong type on non-{i386,amd64} platforms

To manage notifications about this bug go to:
https://bugs.launchpad.net/eglibc/+bug/1016349/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs