Displaying 20 results from an estimated 25 matches for "tag_len".
Did you mean:
seg_len
2007 Feb 15
0
3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_shape.c libswfdec/swfdec_tag.c
...te_set_n_frames (sprite, swfdec_bits_get_u16 (bits), SWFDEC_DECODER (s)->rate);
-
- parse = *bits;
+ swfdec_sprite_set_n_frames (sprite, swfdec_bits_get_u16 (&parse), SWFDEC_DECODER (s)->rate);
s->parse_sprite = sprite;
- while (1) {
+ do {
int x;
- int tag;
guint tag_len;
SwfdecBuffer *buffer;
SwfdecTagFunc *func;
- //SWFDEC_INFO ("sprite parsing at %d", parse.ptr - parse.buffer->data);
x = swfdec_bits_get_u16 (&parse);
tag = (x >> 6) & 0x3ff;
tag_len = x & 0x3f;
@@ -228,25 +223,17 @@ tag_func_define_spri...
2007 Mar 28
0
3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_sprite.c libswfdec/swfdec_tag.c
...fer_unref (buffer);
}
g_free (script_name);
}
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index 255f6c3..edec808 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -212,7 +212,6 @@ tag_func_define_sprite (SwfdecSwfDecoder
do {
int x;
guint tag_len;
- SwfdecBuffer *buffer;
SwfdecTagFunc *func;
x = swfdec_bits_get_u16 (&parse);
@@ -226,16 +225,9 @@ tag_func_define_sprite (SwfdecSwfDecoder
swfdec_swf_decoder_get_tag_name (tag), tag_len);
if (tag_len == 0) {
- buffer = NULL;
swfdec_bits_init_data (&...
2007 Apr 20
0
8 commits - libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_root_sprite.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c NEWS test/parse.c
...lt; s->main_sprite->n_frames) {
s->parse_sprite = s->main_sprite;
ret = func (s);
s->parse_sprite = NULL;
@@ -308,6 +308,9 @@ swfdec_swf_decoder_parse (SwfdecDecoder
swfdec_buffer_queue_get_offset (s->input_queue), tag,
swfdec_swf_decoder_get_tag_name (tag), tag_len);
}
+ } else {
+ ret = SWFDEC_STATE_EOF;
+ SWFDEC_ERROR ("data after last frame");
}
if (tag == 0) {
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index 0d0eeb8..6000d45 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -195,7 +195,7...
2013 Apr 15
1
[PATCH] virtio-spec: document virtio-9p
...Plain Layout
+
+\change_inserted -1728740334 1365527046
+
+struct virtio_9p_config {
+\end_layout
+
+\begin_layout Plain Layout
+
+\change_inserted -1728740334 1365527050
+
+ /* length of the tag name */
+\end_layout
+
+\begin_layout Plain Layout
+
+\change_inserted -1728740334 1365527055
+
+ __u16 tag_len;
+\end_layout
+
+\begin_layout Plain Layout
+
+\change_inserted -1728740334 1365527056
+
+\end_layout
+
+\begin_layout Plain Layout
+
+\change_inserted -1728740334 1365527065
+
+ /* non-NULL terminated tag name */
+\end_layout
+
+\begin_layout Plain Layout
+
+\change_inserted -1728740334 1365527072...
2013 Apr 15
1
[PATCH] virtio-spec: document virtio-9p
...Plain Layout
+
+\change_inserted -1728740334 1365527046
+
+struct virtio_9p_config {
+\end_layout
+
+\begin_layout Plain Layout
+
+\change_inserted -1728740334 1365527050
+
+ /* length of the tag name */
+\end_layout
+
+\begin_layout Plain Layout
+
+\change_inserted -1728740334 1365527055
+
+ __u16 tag_len;
+\end_layout
+
+\begin_layout Plain Layout
+
+\change_inserted -1728740334 1365527056
+
+\end_layout
+
+\begin_layout Plain Layout
+
+\change_inserted -1728740334 1365527065
+
+ /* non-NULL terminated tag name */
+\end_layout
+
+\begin_layout Plain Layout
+
+\change_inserted -1728740334 1365527072...
2007 Jan 22
0
Branch 'interpreter' - 3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_swf_decoder.c test/Makefile.am test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_tag.c test/swfedit_tag.h test/swfedit_token.c test/swfedit_token.h
...swf_parse_header1 (file, bits, error);
+ if (next == NULL)
+ return FALSE;
+ swfdec_bits_init (bits, next);
+ swf_parse_header2 (file, bits);
+
+ while (swfdec_bits_left (bits)) {
+ guint x = swfdec_bits_get_u16 (bits);
+ G_GNUC_UNUSED guint tag = (x >> 6) & 0x3ff;
+ guint tag_len = x & 0x3f;
+ SwfdecBuffer *buffer;
+ SwfeditTag *item;
+ char *name;
+ if (tag_len == 0x3f)
+ tag_len = swfdec_bits_get_u32 (bits);
+ if (tag_len > 0)
+ buffer = swfdec_bits_get_buffer (bits, tag_len);
+ else
+ buffer = swfdec_buffer_new ();
+ if (buffer...
2020 Aug 03
0
[PATCH v2 04/24] virtio_9p: correct tags for config space fields
...WARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. */
-#include <linux/types.h>
+#include <linux/virtio_types.h>
#include <linux/virtio_ids.h>
#include <linux/virtio_config.h>
@@ -36,7 +36,7 @@
struct virtio_9p_config {
/* length of the tag name */
- __u16 tag_len;
+ __virtio16 tag_len;
/* non-NULL terminated tag name */
__u8 tag[0];
} __attribute__((packed));
--
MST
2020 Aug 05
0
[PATCH v3 04/38] virtio_9p: correct tags for config space fields
...WARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. */
-#include <linux/types.h>
+#include <linux/virtio_types.h>
#include <linux/virtio_ids.h>
#include <linux/virtio_config.h>
@@ -36,7 +36,7 @@
struct virtio_9p_config {
/* length of the tag name */
- __u16 tag_len;
+ __virtio16 tag_len;
/* non-NULL terminated tag name */
__u8 tag[0];
} __attribute__((packed));
--
MST
2013 Apr 05
8
[PATCH 0/7] virtio cleanups
Aiming these for coming merge window.
Nothing should change, but get ready for a non-guest-endian config transports,
and > 32 features bits.
Final one is just an overdue consolidation.
Cheers,
Rusty.
Rusty Russell (7):
virtio_config: introduce size-based accessors.
virtio: use size-based config accessors.
virtio_config: helpers for non-converting accessors.
virtio_config: make
2013 Apr 05
8
[PATCH 0/7] virtio cleanups
Aiming these for coming merge window.
Nothing should change, but get ready for a non-guest-endian config transports,
and > 32 features bits.
Final one is just an overdue consolidation.
Cheers,
Rusty.
Rusty Russell (7):
virtio_config: introduce size-based accessors.
virtio: use size-based config accessors.
virtio_config: helpers for non-converting accessors.
virtio_config: make
2020 Jul 12
0
[vhost:config-endian 22/36] ./usr/include/linux/virtio_9p.h:39:2: error: unknown type name '__virtio16'
...dd following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
In file included from <command-line>:32:
>> ./usr/include/linux/virtio_9p.h:39:2: error: unknown type name '__virtio16'
39 | __virtio16 tag_len;
| ^~~~~~~~~~
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all at lists.01.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 75209 bytes
Desc: not available
UR...
2013 Jul 06
1
[PATCH 1/2] xenstore: don't die on access-denied child nodes in 'xenstore ls'
...@@ static void do_ls(struct xs_handle *h, char *path, int cur_depth, int show_perms
/* Print value */
if (val == NULL) {
- printf(":\n");
+ putchar('':'');
}
else {
if (max_width < (linewid + len + TAG_LEN)) {
@@ -192,12 +197,12 @@ static void do_ls(struct xs_handle *h, char *path, int cur_depth, int show_perms
}
}
}
- free(val);
if (show_perms) {
perms = xs_get_permissions(h, XBT_NULL, newpath, &nperms);
if (perms...
2007 Jan 18
0
Branch 'interpreter' - 4 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_tag.c
...wfdec_tag.c b/libswfdec/swfdec_tag.c
index 4f57b1a..3896101 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -212,7 +212,6 @@ tag_func_define_sprite (SwfdecSwfDecoder
s->parse_sprite = sprite;
while (1) {
- unsigned char *endptr;
int x;
int tag;
guint tag_len;
@@ -258,7 +257,7 @@ tag_func_define_sprite (SwfdecSwfDecoder
SWFDEC_ERROR ("invalid tag %d %s during DefineSprite",
tag, swfdec_swf_decoder_get_tag_name (tag));
} else {
- endptr = parse.ptr + tag_len;
+ const unsigned char *endptr = parse.ptr + tag_len;...
2007 Jan 25
0
Branch 'interpreter' - 28 commits - configure.ac libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_player.c
...uot;
#include "libswfdec/swfdec_buffer.h"
#include "libswfdec/swfdec_debug.h"
+#include "libswfdec/swfdec_swf_decoder.h"
#include "swfedit_file.h"
#include "swfedit_tag.h"
@@ -152,7 +153,7 @@ swfedit_file_parse (SwfeditFile *file, S
guint tag_len = x & 0x3f;
SwfdecBuffer *buffer;
SwfeditTag *item;
- char *name;
+
if (tag_len == 0x3f)
tag_len = swfdec_bits_get_u32 (bits);
if (tag == 0)
@@ -167,9 +168,9 @@ swfedit_file_parse (SwfeditFile *file, S
return FALSE;
}
item = swfedit_tag_new (SWFEDI...
2013 May 23
2
[PATCH 1/2] gcov: Add script to split coverage informations.
...nc) {
+ die if scalar(@funcs);
+ @funcs = parseFunctions(scalar(@ctrs));
+ next;
+ }
+
+ # must be a counter
+ push @ctrs, parseCounters($tag);
+ ++$numCounters;
+ }
+
+ # print all functions
+ for my $f (@funcs) {
+ # tag tag_len ident checksum
+ print OUT pack(''VVVV'', 0x01000000, 2, $f->[0], $f->[1]);
+ # all counts
+ my $n = 0;
+ for my $c (@{$f->[2]}) {
+ my ($type, $data) = @{$ctrs[$n]};
+ print OUT pack(''VV'', $ctrBase + 0x200...
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
...dex 33fb719..77a1f66 100644
--- a/libswfdec/swfdec_swf_decoder.c
+++ b/libswfdec/swfdec_swf_decoder.c
@@ -282,7 +282,7 @@ swfdec_swf_decoder_parse (SwfdecDecoder
{
guint header_length;
guint x;
- SwfdecTagFunc *func;
+ SwfdecTagFunc func;
guint tag;
guint tag_len;
@@ -341,7 +341,7 @@ swfdec_swf_decoder_parse (SwfdecDecoder
tag, swfdec_swf_decoder_get_tag_name (tag));
} else if (s->main_sprite->parse_frame < s->main_sprite->n_frames) {
s->parse_sprite = s->main_sprite;
- ret = func (s);
+ ret = func (s, tag);
s->pa...
2007 Feb 19
0
22 commits - libswfdec/js libswfdec/swfdec_debugger.c libswfdec/swfdec_js.c libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_script.c
...not used, so we don't unref it later
diff --git a/libswfdec/swfdec_tag.c b/libswfdec/swfdec_tag.c
index 97a1e4d..9fd2491 100644
--- a/libswfdec/swfdec_tag.c
+++ b/libswfdec/swfdec_tag.c
@@ -225,6 +225,7 @@ tag_func_define_sprite (SwfdecSwfDecoder
swfdec_swf_decoder_get_tag_name (tag), tag_len);
if (tag_len == 0) {
+ buffer = NULL;
swfdec_bits_init_data (&s->b, NULL, 0);
} else {
buffer = swfdec_bits_get_buffer (&parse, tag_len);
diff-tree c13c11c4f1bb89da4ff0ab669868a896859b6d51 (from fe60df1a5559878b417a19a4c25355b6b996c56c)
Author: Benjamin Ot...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...uot;
#include "libswfdec/swfdec_buffer.h"
#include "libswfdec/swfdec_debug.h"
+#include "libswfdec/swfdec_swf_decoder.h"
#include "swfedit_file.h"
#include "swfedit_tag.h"
@@ -152,7 +153,7 @@ swfedit_file_parse (SwfeditFile *file, S
guint tag_len = x & 0x3f;
SwfdecBuffer *buffer;
SwfeditTag *item;
- char *name;
+
if (tag_len == 0x3f)
tag_len = swfdec_bits_get_u32 (bits);
if (tag == 0)
@@ -167,9 +168,9 @@ swfedit_file_parse (SwfeditFile *file, S
return FALSE;
}
item = swfedit_tag_new (SWFEDI...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...swf_parse_header1 (file, bits, error);
- if (next == NULL)
- return FALSE;
- swfdec_bits_init (bits, next);
- swf_parse_header2 (file, bits);
-
- while (swfdec_bits_left (bits)) {
- guint x = swfdec_bits_get_u16 (bits);
- G_GNUC_UNUSED guint tag = (x >> 6) & 0x3ff;
- guint tag_len = x & 0x3f;
- SwfdecBuffer *buffer;
- SwfeditTag *item;
-
- if (tag_len == 0x3f)
- tag_len = swfdec_bits_get_u32 (bits);
- if (tag == 0)
- break;
- if (tag_len > 0)
- buffer = swfdec_bits_get_buffer (bits, tag_len);
- else
- buffer = swfdec_buffer_new ()...
2013 Mar 21
24
[PATCH 00/22] New virtio PCI layout
I've renewed this again, with some comments from HPA. I've tried to
keep the new patches separate, so you can see the changes since we
last discussed this (and so it's easy to back it out if we decide it's
insane).
I haven't even looked at the QEMU side so this is completely untested.
Comments gratefully received!
Rusty.
Michael S Tsirkin (1):
pci: add pci_iomap_range