Debian Bug report logs - #211570
libsdl-net1.2: SDLNet_UDP_Bind does not behave as described

version graph

Package: libsdl-net1.2; Maintainer for libsdl-net1.2 is Debian SDL packages maintainers <pkg-sdl-maintainers@lists.alioth.debian.org>; Source for libsdl-net1.2 is src:sdl-net1.2 (PTS, buildd, popcon).

Reported by: cph@cph.demon.co.uk

Date: Thu, 18 Sep 2003 18:03:04 UTC

Severity: normal

Found in version 1.2.2-1.1

Fixed in version sdl-net1.2/1.2.5-4

Done: Mike Furr <mfurr@debian.org>

Bug is archived. No further changes may be made.

Forwarded to Sam Lantinga <slouken@devolution.com>

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Mike Furr <mfurr@debian.org>:
Bug#211570; Package libsdl-net1.2. (full text, mbox, link).


Acknowledgement sent to cph@cph.demon.co.uk:
New Bug report received and forwarded. Copy sent to Mike Furr <mfurr@debian.org>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: cph@cph.demon.co.uk
To: submit@bugs.debian.org
Subject: libsdl-net1.2: SDLNet_UDP_Bind does not behave as described
Date: Thu, 18 Sep 2003 18:54:09 +0100 (BST)
Package: libsdl-net1.2
Version: 1.2.2-1.1
Severity: normal

From SDLnetUDP.c:SDLNet_UDP_Bind:
/* Bind the address 'address' to the requested channel on the UDP socket.
   If the channel is -1, then the first unbound channel will be bound with
   the given address as it's primary address.
...
	if ( channel == -1 ) {
		for ( channel=0; channel < SDLNET_MAX_UDPCHANNELS; ++channel ) {
			binding = &sock->binding[channel];
			if ( binding->numbound < SDLNET_MAX_UDPADDRESSES ) {
				break;
			}
		}

The comment, which is the same as in the header file, describes one behaviour.
The code implements another: if channel is -1, it binds to the first channel
that has not yet been bound to the maximum number of addresses. The if
(binding->numbound... line should be just if ( binding->numbound) {
(i.e. choose an unused channel). (Although this may break any apps using the
incorrect behaviour.)

This bug appears to be present in the version in unstable, which is the latest
upstream release of SDL_net. 

-- System Information
Debian Release: 3.0
Kernel Version: Linux athlon 2.4.22-rc2 #1 Mon Aug 11 21:14:13 BST 2003 i686 unknown

Versions of the packages libsdl-net1.2 depends on:
ii  libc6          2.2.5-11.2     GNU C Library: Shared libraries and Timezone



Noted your statement that Bug has been forwarded to Sam Lantinga <slouken@devolution.com>. Request was from Mike Furr <mike.furr@umbc.edu> to control@bugs.debian.org. (full text, mbox, link).


Reply sent to Mike Furr <mfurr@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to cph@cph.demon.co.uk:
Bug acknowledged by developer. (full text, mbox, link).


Message #12 received at 211570-close@bugs.debian.org (full text, mbox, reply):

From: Mike Furr <mfurr@debian.org>
To: 211570-close@bugs.debian.org
Subject: Bug#211570: fixed in sdl-net1.2 1.2.5-4
Date: Tue, 12 Jul 2005 14:48:12 -0400
Source: sdl-net1.2
Source-Version: 1.2.5-4

We believe that the bug you reported is fixed in the latest version of
sdl-net1.2, which is due to be installed in the Debian FTP archive:

libsdl-net1.2-dev_1.2.5-4_i386.deb
  to pool/main/s/sdl-net1.2/libsdl-net1.2-dev_1.2.5-4_i386.deb
libsdl-net1.2_1.2.5-4_i386.deb
  to pool/main/s/sdl-net1.2/libsdl-net1.2_1.2.5-4_i386.deb
sdl-net1.2_1.2.5-4.diff.gz
  to pool/main/s/sdl-net1.2/sdl-net1.2_1.2.5-4.diff.gz
sdl-net1.2_1.2.5-4.dsc
  to pool/main/s/sdl-net1.2/sdl-net1.2_1.2.5-4.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 211570@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mike Furr <mfurr@debian.org> (supplier of updated sdl-net1.2 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat,  2 Jul 2005 17:51:00 -0400
Source: sdl-net1.2
Binary: libsdl-net1.2-dev libsdl-net1.2
Architecture: source i386
Version: 1.2.5-4
Distribution: unstable
Urgency: low
Maintainer: Mike Furr <mfurr@debian.org>
Changed-By: Mike Furr <mfurr@debian.org>
Description: 
 libsdl-net1.2 - network library for Simple DirectMedia Layer
 libsdl-net1.2-dev - Development files for SDL network library
Closes: 211570 278595 290202
Changes: 
 sdl-net1.2 (1.2.5-4) unstable; urgency=low
 .
   * dpatch-ification
   * Added patch from Sam Hocevar which doesn't byteswap on big endian
     arches when SDL_DATA_ALIGNED is true
   * Changed comment for SDLNet_UDP_Bind to reflect implementation
     - Since upstream has not responded to this (and seems dead), and a fair
       number of packages use sdl-net, I don't want to change the behavior
       just for debian, only properly document the actual behavior.
     - (Closes: 211570)
   * Updated libtool for kfreebsd-gnu support (Closes: 278595)
   * Updated debian/copyright to say GPL is the license instead of copyright
     (Closes: 290202)
Files: 
 5c3b0b1e72299536ae5a0a68d59560d1 641 libs optional sdl-net1.2_1.2.5-4.dsc
 890e73e8c77eb39cb45e7ceccfdc1f08 296731 libs optional sdl-net1.2_1.2.5-4.diff.gz
 75dc19996e25b2cbe0016f96b176d96f 15614 libdevel optional libsdl-net1.2-dev_1.2.5-4_i386.deb
 1974c1dee7f4c57b7cf9eff078476314 10018 libs optional libsdl-net1.2_1.2.5-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC1AvG7ZPKKRJLJvMRApVGAKC7s6LJeMVKpTTBcZJWkV10TfafSQCfWKR2
WmtbuTHDS8lLJdBMAhke3Pw=
=2SdS
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 26 Jun 2007 10:05:07 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 08:33:48 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.