Merge lp:~kamalmostafa/ubuntu/lucid/aprsd/aprsd-fixes into lp:ubuntu/lucid/aprsd

Proposed by Kamal Mostafa
Status: Merged
Merge reported by: Kamal Mostafa
Merged at revision: not available
Proposed branch: lp:~kamalmostafa/ubuntu/lucid/aprsd/aprsd-fixes
Merge into: lp:ubuntu/lucid/aprsd
Diff against target: 141 lines (+22/-14)
5 files modified
debian/changelog (+7/-0)
debian/control (+2/-1)
src/aprsString.cpp (+2/-2)
src/aprsString.h (+1/-1)
src/servers.cpp (+10/-10)
To merge this branch: bzr merge lp:~kamalmostafa/ubuntu/lucid/aprsd/aprsd-fixes
Reviewer Review Type Date Requested Status
Steve Conklin Pending
Ubuntu branches Pending
Review via email: mp+17087@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

Patch has been forwarded upstream to project home at Sourceforge.

Revision history for this message
Kamal Mostafa (kamalmostafa) wrote :

Added Steve Conklin for optional review, but he's most likely too busy to worry about this. :-)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2009-11-08 18:39:41 +0000
3+++ debian/changelog 2010-01-10 03:18:13 +0000
4@@ -1,3 +1,10 @@
5+aprsd (1:2.2.5-13-5.1ubuntu1) lucid; urgency=low
6+
7+ * Fix "user" login crash on 64-bit platforms. (LP: #208913)
8+ * Fix socklen_t compiler warnings (and possible failure) on 64-bit platforms.
9+
10+ -- Kamal Mostafa <kamal@whence.com> Sat, 09 Jan 2010 17:42:40 -0800
11+
12 aprsd (1:2.2.5-13-5.1) unstable; urgency=low
13
14 * Retiring - remove myself from the uploaders list.
15
16=== modified file 'debian/control'
17--- debian/control 2009-11-08 18:39:41 +0000
18+++ debian/control 2010-01-10 03:18:13 +0000
19@@ -1,7 +1,8 @@
20 Source: aprsd
21 Section: hamradio
22 Priority: optional
23-Maintainer: Debian Hamradio Maintainers <debian-hams@lists.debian.org>
24+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
25+XSBC-Original-Maintainer: Debian Hamradio Maintainers <debian-hams@lists.debian.org>
26 Uploaders: Jaime Robles <jaime@debian.org>, Patrick Ouellette <pouelle@debian.org>, Hamish Moffatt <hamish@debian.org>
27 Standards-Version: 3.7.3
28 Build-Depends: libax25-dev, debhelper (>= 4)
29
30=== modified file 'src/aprsString.cpp'
31--- src/aprsString.cpp 2003-06-20 22:30:49 +0000
32+++ src/aprsString.cpp 2010-01-10 03:18:13 +0000
33@@ -905,9 +905,9 @@
34 //Returns index of path element if match found
35 // or npos is not found.
36
37-unsigned aprsString::queryPath(const string& s, int start, int stop , unsigned n)
38+size_t aprsString::queryPath(const string& s, int start, int stop , size_t n)
39 {
40- unsigned rc = npos;
41+ size_t rc = npos;
42
43 if (valid_ax25 == false)
44 return rc;
45
46=== modified file 'src/aprsString.h'
47--- src/aprsString.h 2006-05-25 18:22:50 +0000
48+++ src/aprsString.h 2010-01-10 03:18:13 +0000
49@@ -204,7 +204,7 @@
50 void setEchoMask(echomask_t m);
51
52 //Tells if char string cp is in the ax25 path
53- unsigned queryPath(const string& s, int start = 0, int stop = -1, unsigned n = npos);
54+ size_t queryPath(const string& s, int start = 0, int stop = -1, size_t n = npos);
55
56 bool changePath(const char* newPath, const char* oldPath); //Change one path element
57 bool addPath(const char* cp, char c = ' ');
58
59=== modified file 'src/servers.cpp'
60--- src/servers.cpp 2008-03-21 13:02:55 +0000
61+++ src/servers.cpp 2010-01-10 03:18:13 +0000
62@@ -963,11 +963,11 @@
63 } // End loop detect #1
64
65 // Loop detector #2, Reject if user login call seen after qA but not last path element
66- unsigned rc = abuff->queryPath(abuff->call,abuff->IjpIdx + 1);
67+ size_t rc = abuff->queryPath(abuff->call,abuff->IjpIdx + 1);
68 if (( rc != string::npos)
69 && (abuff->aprsType != APRSREJECT)){
70
71- if (rc != (unsigned)(abuff->pathSize - 1)){
72+ if (rc != (size_t)(abuff->pathSize - 1)){
73 abuff->aprsType = APRSREJECT; //Looped packet, REJECT
74 string log_str = abuff->srcHeader + *abuff;
75 WriteLog(log_str, LOGPATH + LOOPLOG); //Write offending packet to loop.log
76@@ -982,7 +982,7 @@
77 && (abuff->sourceSock != SRC_INTERNAL)){
78
79 if (abuff->EchoMask & srcUSERVALID){ //From validated connection?
80- unsigned rc = abuff->queryPath(abuff->call,abuff->IjpIdx + 1);
81+ size_t rc = abuff->queryPath(abuff->call,abuff->IjpIdx + 1);
82 if(rc == string::npos)
83 abuff->addPath(abuff->call); //Add user login call if not present in path.
84 }
85@@ -1373,7 +1373,7 @@
86 unsigned char c;
87 char star = '*';
88
89- unsigned adr_size = sizeof(peer_adr);
90+ socklen_t adr_size = sizeof(peer_adr);
91 int n, rc,data;
92 bool verified = false, loggedon = false;
93 ULONG State = BASE;
94@@ -1825,7 +1825,7 @@
95 }
96
97 string vd;
98- unsigned idxInvalid=0;
99+ size_t idxInvalid=0;
100 if (atemp.aprsType == APRSLOGON) {
101 loggedon = true;
102 verified = false;
103@@ -2111,7 +2111,7 @@
104 szPass[15] = '\0';
105
106 bool verified_tnc = false;
107- unsigned idxInvalid=0;
108+ size_t idxInvalid=0;
109
110 int valid = -1;
111
112@@ -2239,7 +2239,7 @@
113 void *TCPServerThread(void *p)
114 {
115 int s = 0, rc = 0;
116- unsigned i;
117+ socklen_t client_address_size;
118 SessionParams* session;
119 pthread_t SessionThread;
120 int backlog = 5; // Backlog of pending connections
121@@ -2285,9 +2285,9 @@
122 listen(s, backlog);
123
124 for(;;) {
125- i = sizeof(client);
126+ client_address_size = sizeof(client);
127 session = new SessionParams;
128- session->Socket = accept(s, (struct sockaddr *)&client, &i);
129+ session->Socket = accept(s, (struct sockaddr *)&client, &client_address_size);
130 session->EchoMask = sp->EchoMask;
131 session->ServerPort = sp->ServerPort;
132 if (ShutDownServer) {
133@@ -2334,7 +2334,7 @@
134 {
135 #define UDPSIZE 256
136 int s,i;
137- unsigned client_address_size;
138+ socklen_t client_address_size;
139 struct sockaddr_in client, server;
140 char buf[UDPSIZE+3];
141 UdpParams* upp = (UdpParams*)p;

Subscribers

People subscribed via source and target branches

to all changes: