]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/avahi/avahi-0.1/avahi-test-memory-corruption.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / avahi / avahi-0.1 / avahi-test-memory-corruption.patch
1 diff -Nurd avahi-0.1.orig/avahi-core/avahi-test.c avahi-0.1/avahi-core/avahi-test.c
2 --- avahi-0.1.orig/avahi-core/avahi-test.c      2005-08-21 23:27:14 +0200
3 +++ avahi-0.1/avahi-core/avahi-test.c   2005-08-28 00:34:50 +0200
4 @@ -261,7 +261,7 @@
5      poll_api->timeout_new(poll_api, &tv, dump_timeout_callback, server);
6  
7      avahi_elapse_time(&tv, 1000*60, 0);
8 -    poll_api->timeout_new(poll_api, &tv, quit_timeout_callback, server);
9 +    poll_api->timeout_new(poll_api, &tv, quit_timeout_callback, simple_poll);
10  
11      for (;;)
12          if (avahi_simple_poll_iterate(simple_poll, -1) != 0)
13 diff -Nurd avahi-0.1.orig/avahi-core/server.c avahi-0.1/avahi-core/server.c
14 --- avahi-0.1.orig/avahi-core/server.c  2005-08-21 23:27:14 +0200
15 +++ avahi-0.1/avahi-core/server.c       2005-08-28 00:34:50 +0200
16 @@ -267,7 +267,6 @@
17          }
18      }
19  
20 -
21      if (!ours) {
22  
23          if (won)
24 diff -Nurd avahi-0.1.orig/avahi-core/hashmap.c avahi-0.1/avahi-core/hashmap.c
25 --- avahi-0.1.orig/avahi-core/hashmap.c 2005-08-21 23:27:14 +0200
26 +++ avahi-0.1/avahi-core/hashmap.c      2005-08-28 00:34:50 +0200
27 @@ -69,6 +69,7 @@
28  
29  static void entry_free(AvahiHashmap *m, Entry *e, int stolen) {
30      unsigned idx;
31 +    assert(m);
32      assert(e);
33  
34      idx = m->hash_func(e->key) % HASH_MAP_SIZE;