Merge lp:~kevin-lacqui/ubuntu/oneiric/eggdrop/fix-for-885329 into lp:ubuntu/oneiric/eggdrop

Proposed by Kevin Lacquement
Status: Work in progress
Proposed branch: lp:~kevin-lacqui/ubuntu/oneiric/eggdrop/fix-for-885329
Merge into: lp:ubuntu/oneiric/eggdrop
Diff against target: 35 lines (+8/-2)
2 files modified
debian/changelog (+6/-0)
src/tclhash.c (+2/-2)
To merge this branch: bzr merge lp:~kevin-lacqui/ubuntu/oneiric/eggdrop/fix-for-885329
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Needs Fixing
Ubuntu branches Pending
Review via email: mp+81387@code.launchpad.net

Description of the change

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks a lot for identifying the problem and working on the fix!

A few things probably worth noting:
 - As per our SRU policy bugs in stable releases need to be fixed in the current development (precise) release first.
 - The eggdrop package uses the CDBS build- and patch-system, maybe it would make sense to borrow the relevant portion from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635274 instead (and use the changelog entry, so whoever works on a merge next knows where the change came from.)
 - A minor nitpick: generally we try to wrap the changelog entries at 80 chars.

Apart from that: great work on identifying the problem and figuring out the fix!

review: Needs Fixing

Unmerged revisions

12. By Kevin Lacquement

src/tclhash.c: Updated call to Tcl_ScanElement as per http://forum.egghelp.org/viewtopics.php?p=97173#97173 (LP: #885329)

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 2011-05-22 16:28:55 +0000
3+++ debian/changelog 2011-11-06 05:20:30 +0000
4@@ -1,3 +1,9 @@
5+eggdrop (1.6.19-1.2ubuntu3) oneiric; urgency=low
6+
7+ * src/tclhash.c: Updated call to Tcl_ScanElement as per http://forum.egghelp.org/viewtopics.php?p=97173#97173 (LP: #885329)
8+
9+ -- Kevin Lacquement <kevin@lacqui.com> Sat, 05 Nov 2011 22:12:47 -0700
10+
11 eggdrop (1.6.19-1.2ubuntu2) oneiric; urgency=low
12
13 * No change rebuild for libssl1.0.0 transition.
14
15=== modified file 'src/tclhash.c'
16--- src/tclhash.c 2008-08-18 00:26:01 +0000
17+++ src/tclhash.c 2011-11-06 05:20:30 +0000
18@@ -1202,7 +1202,7 @@
19 for (i = 0; cc[i].name; i++) {
20 egg_snprintf(p, sizeof p, "*%s:%s", tl->name,
21 cc[i].funcname ? cc[i].funcname : cc[i].name);
22- l = nmalloc(Tcl_ScanElement(p, &k));
23+ l = nmalloc(Tcl_ScanElement(p, &k) + 1);
24 Tcl_ConvertElement(p, l, k | TCL_DONT_USE_BRACES);
25 table[0].cdata = (void *) cc[i].func;
26 add_cd_tcl_cmds(table);
27@@ -1220,7 +1220,7 @@
28 for (i = 0; cc[i].name; i++) {
29 egg_snprintf(p, sizeof p, "*%s:%s", table->name,
30 cc[i].funcname ? cc[i].funcname : cc[i].name);
31- l = nmalloc(Tcl_ScanElement(p, &k));
32+ l = nmalloc(Tcl_ScanElement(p, &k) + 1);
33 Tcl_ConvertElement(p, l, k | TCL_DONT_USE_BRACES);
34 Tcl_DeleteCommand(interp, p);
35 unbind_bind_entry(table, cc[i].flags, cc[i].name, l);

Subscribers

People subscribed via source and target branches