Displaying 2 results from an estimated 2 matches for "a90ba96".
2007 Mar 20
0
2 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_net_stream.c
...ts:
diff-tree 6363187dd9b03c0c32bbce14ba5de298deb3533d (from 759af095e57187bc8de0a3959e27f9032a37c08f)
Author: Benjamin Otte <otte@gnome.org>
Date: Tue Mar 20 20:58:16 2007 +0100
no more type punned pointers
diff --git a/libswfdec/swfdec_bits.c b/libswfdec/swfdec_bits.c
index e6a38ed..a90ba96 100644
--- a/libswfdec/swfdec_bits.c
+++ b/libswfdec/swfdec_bits.c
@@ -336,6 +336,7 @@ swfdec_bits_get_bdouble (SwfdecBits * b)
double d;
#if G_BYTE_ORDER == G_LITTLE_ENDIAN
guint64 tmp;
+ gpointer p;
#endif
SWFDEC_BYTES_CHECK (b, 8);
@@ -345,7 +346,8 @@ swfdec_bits_get_bdouble (Swfde...
2007 Mar 28
0
3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_sprite.c libswfdec/swfdec_tag.c
...ncing when they want to resume reading bytes. The byte
reading code asserts that bits->idx == 0.
This change may introduce segfaults with code that isn't yet canged to call
swfdec_bits_syncbits() manually.
diff --git a/libswfdec/swfdec_bits.c b/libswfdec/swfdec_bits.c
index a90ba96..ff863cc 100644
--- a/libswfdec/swfdec_bits.c
+++ b/libswfdec/swfdec_bits.c
@@ -96,11 +96,9 @@ swfdec_bits_left (SwfdecBits *b)
} \
}G_STMT_END
#define SWFDEC_BYTES_CHECK(b,n) G_STMT_START { \
- gulong __bytes; \
- swfdec_bits_syncbits (b); \
- __bytes = b->end - b->ptr; \
- if (!(__...