File: segfault.diff

package info (click to toggle)
routeplanner 0.17
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,836 kB
  • ctags: 264
  • sloc: python: 3,282; makefile: 58; sh: 40
file content (24 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This patch needs to be applied to the PQueue module for it to work
properly; otherwise, it will segfault when a PQueue containing tuples
is freed.

The Debian version (python-pqueue) already has this patch.

Index: pqueuemodule.c
===================================================================
RCS file: /home/earthpig/work/cvs_repository/project/PQueue/pqueuemodule.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- pqueuemodule.c	1999/10/25 12:20:23	1.2
+++ pqueuemodule.c	2000/01/04 12:44:30	1.3
@@ -238,7 +238,7 @@
 	do {
 		heapnode *x = child;
 		if (x->child != NULL) {
-			x->left->right = x->right;
+			x->child->left->right = x->right;
 			x->right = x->child;
 		}
 		Py_DECREF(x->priority);