search for: end_bits

Displaying 7 results from an estimated 7 matches for "end_bits".

Did you mean: enc_bits
2007 Apr 17
0
15 commits - libswfdec/jpeg libswfdec/swfdec_bits.c libswfdec/swfdec_edittext.c libswfdec/swfdec_font.c libswfdec/swfdec_image.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c libswfdec/swfdec_shape.c libswfdec/swfdec_sprite.c
...wfdec_shape.c b/libswfdec/swfdec_shape.c index 3792582..a81b389 100644 --- a/libswfdec/swfdec_shape.c +++ b/libswfdec/swfdec_shape.c @@ -1038,7 +1038,10 @@ tag_define_morph_shape (SwfdecSwfDecoder swfdec_bits_get_rect (bits, &morph->end_extents); offset = swfdec_bits_get_u32 (bits); end_bits = *bits; - end_bits.ptr += offset; + if (swfdec_bits_skip_bytes (&end_bits, offset) != offset) { + SWFDEC_ERROR ("wrong offset in DefineMorphShape"); + return SWFDEC_STATUS_OK; + } bits->end = end_bits.ptr; swfdec_shape_add_styles (s, SWFDEC_SHAPE (morph), diff-tre...
2007 Apr 17
0
Branch 'as' - 17 commits - libswfdec/jpeg libswfdec/swfdec_bits.c libswfdec/swfdec_font.c libswfdec/swfdec_image.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c libswfdec/swfdec_shape.c libswfdec/swfdec_sound.c libswfdec/swfdec_sprite.c
...wfdec_shape.c b/libswfdec/swfdec_shape.c index 3792582..a81b389 100644 --- a/libswfdec/swfdec_shape.c +++ b/libswfdec/swfdec_shape.c @@ -1038,7 +1038,10 @@ tag_define_morph_shape (SwfdecSwfDecoder swfdec_bits_get_rect (bits, &morph->end_extents); offset = swfdec_bits_get_u32 (bits); end_bits = *bits; - end_bits.ptr += offset; + if (swfdec_bits_skip_bytes (&end_bits, offset) != offset) { + SWFDEC_ERROR ("wrong offset in DefineMorphShape"); + return SWFDEC_STATUS_OK; + } bits->end = end_bits.ptr; swfdec_shape_add_styles (s, SWFDEC_SHAPE (morph), diff-tre...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...t_operator (cr, CAIRO_OPERATOR_OVER); cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); @@ -878,19 +878,19 @@ swfdec_morph_shape_do_change (SwfdecBits SWFDEC_LOG (" moveto %d,%d", *x, *y); } if (state_fill_styles0) { - unsigned int check = swfdec_bits_getbits (end_bits, morph->n_fill_bits) + + guint check = swfdec_bits_getbits (end_bits, morph->n_fill_bits) + SWFDEC_SHAPE (morph)->fills_offset; if (check != path->fill0style) SWFDEC_ERROR ("end fill0style %u differs from start fill0style %u", check, path->fill0style);...
2007 Apr 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_font.c libswfdec/swfdec_loadertarget.c libswfdec/swfdec_movie.h libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_player.c
..._TYPE_CHANGE: start_path = swfdec_shape_parse_change (s, shape, start_path_array, start_path, &start_x, &start_y, - swfdec_pattern_parse_morph, swfdec_pattern_parse_morph_stroke); + swfdec_pattern_parse_morph, swfdec_stroke_parse_morph); end_path = swfdec_morph_shape_do_change (end_bits, start_path, morph, end_path_array, end_path, &end_x, &end_y); break; case SWFDEC_SHAPE_TYPE_LINE: @@ -1023,7 +1024,7 @@ tag_define_morph_shape (SwfdecSwfDecoder bits->end = end_bits.ptr; swfdec_shape_add_styles (s, SWFDEC_SHAPE (morph), - swfdec_pattern_parse_morph...
2007 Apr 16
0
4 commits - libswfdec/swfdec_shape.c libswfdec/swfdec_stroke.c test/dump.c
...SubPath *) path_array->data, path_array->len); swfdec_shape_accumulate_lines (shape, (SubPath *) path_array->data, path_array->len); for (i = 0; i < path_array->len; i++) { @@ -927,13 +936,14 @@ swfdec_morph_shape_get_recs (SwfdecSwfDe end_type = swfdec_shape_peek_type (end_bits); if (end_type == SWFDEC_SHAPE_TYPE_CHANGE && start_type != SWFDEC_SHAPE_TYPE_CHANGE) { SubPath *path; - g_array_set_size (start_path_array, start_path_array->len + 1); - path = &g_array_index (start_path_array, SubPath, start_path_array->len - 1); if...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...t_operator (cr, CAIRO_OPERATOR_OVER); cairo_set_fill_rule (cr, CAIRO_FILL_RULE_EVEN_ODD); @@ -878,19 +878,19 @@ swfdec_morph_shape_do_change (SwfdecBits SWFDEC_LOG (" moveto %d,%d", *x, *y); } if (state_fill_styles0) { - unsigned int check = swfdec_bits_getbits (end_bits, morph->n_fill_bits) + + guint check = swfdec_bits_getbits (end_bits, morph->n_fill_bits) + SWFDEC_SHAPE (morph)->fills_offset; if (check != path->fill0style) SWFDEC_ERROR ("end fill0style %u differs from start fill0style %u", check, path->fill0style);...
2007 Jun 15
0
Branch 'as' - 5 commits - libswfdec/swfdec_as_native_function.c libswfdec/swfdec_edittext.c libswfdec/swfdec_edittext.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_morphshape.h
...4 (SwfdecSwfDecoder *s) +tag_define_shape_4 (SwfdecSwfDecoder *s, guint tag) { SwfdecBits *bits = &s->b; SwfdecShape *shape; @@ -1020,7 +1014,7 @@ error: } int -tag_define_morph_shape (SwfdecSwfDecoder * s) +tag_define_morph_shape (SwfdecSwfDecoder * s, guint tag) { SwfdecBits end_bits; SwfdecBits *bits = &s->b; diff --git a/libswfdec/swfdec_shape.h b/libswfdec/swfdec_shape.h index d3d998d..1b062a1 100644 --- a/libswfdec/swfdec_shape.h +++ b/libswfdec/swfdec_shape.h @@ -76,10 +76,9 @@ struct _SwfdecShapeClass GType swfdec_shape_get_type (void); -int tag_define_shap...