search for: vendor_str

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

Did you mean: vendor_err
2014 Sep 25
2
Patch to improve malformed vorbiscomment handling
...Metadata_SimpleIteratorStatus read_metadata_block_data_vorbis_comment_cb_( else if(0 == (block->comments = calloc(block->num_comments, sizeof(FLAC__StreamMetadata_VorbisComment_Entry)))) return FLAC__METADATA_SIMPLE_ITERATOR_STATUS_MEMORY_ALLOCATION_ERROR; + block_length -= 8+block->vendor_string.length; for(i = 0; i < block->num_comments; i++) { if(FLAC__METADATA_SIMPLE_ITERATOR_STATUS_OK != (status = read_metadata_block_data_vorbis_comment_entry_cb_(handle, read_cb, block->comments + i))) return status; + block_length -= 4+block->comments[i].length; + } + + if(blo...
2014 Sep 26
0
Patch to improve malformed vorbiscomment handling
...eIteratorStatus read_metadata_block_data_vorbis_comment_cb_( FLAC__ASSERT(FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LEN / 8 == sizeof(buffer)); - if(FLAC__METADATA_SIMPLE_ITERATOR_STATUS_OK != (status = read_metadata_block_data_vorbis_comment_entry_cb_(handle, read_cb, &(block->vendor_string)))) - return status; + status = read_metadata_block_data_vorbis_comment_entry_cb_(handle, read_cb, &(block->vendor_string), block_length); + if(block_length >= 4) block_length -= 4; + if(status == FLAC__METADATA_CHAIN_STATUS_BAD_METADATA) goto skip; + else if(status != FLAC__METADATA_...
2014 Sep 26
0
Patch to improve malformed vorbiscomment handling
...eIteratorStatus read_metadata_block_data_vorbis_comment_cb_( FLAC__ASSERT(FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LEN / 8 == sizeof(buffer)); - if(FLAC__METADATA_SIMPLE_ITERATOR_STATUS_OK != (status = read_metadata_block_data_vorbis_comment_entry_cb_(handle, read_cb, &(block->vendor_string)))) - return status; + status = read_metadata_block_data_vorbis_comment_entry_cb_(handle, read_cb, &(block->vendor_string), block_length); + if(block_length >= 4) block_length -= 4; + if(status == FLAC__METADATA_SIMPLE_ITERATOR_STATUS_BAD_METADATA) goto skip; + else if(status != FLAC_...
2014 Sep 26
2
Patch to improve malformed vorbiscomment handling
Janne Hyv?rinen wrote: > Patch v2, now handles more malformed cases. Original patch was for a > file for which I had a sample from a user but this allows handling some > manually broken test cases. Err, I'm getting warning messages on that patch: CC metadata_iterators.lo metadata_iterators.c: In function ?read_metadata_block_data_vorbis_comment_cb_?:
2006 Aug 11
0
[PATCH] [4/5] SMBIOS -- generate SMBIOS tables
...t char *xen_version, + uint32_t xen_major_version, uint32_t xen_minor_version) +{ + struct smbios_type_0 *p = (struct smbios_type_0 *)start; + + p->header.type = 0; + p->header.length = sizeof(struct smbios_type_0); + p->header.handle = 0; + + p->vendor_str = 1; + p->version_str = 2; + p->starting_address_segment = 0xe800; + p->release_date_str = 0; + p->rom_size = 0; + + memset(p->characteristics, 0, 8); + p->characteristics[7] = 0x08; /* BIOS characteristics not supported */ + p->characteristics_extensio...
2012 Apr 05
2
[PATCH 2/2] V2: Use a single definition of MIN and MAX in sources
...ENT_ENTRY_LENGTH_LEN, FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LEN) / 8 == sizeof(buffer)); + FLAC__ASSERT(flac_max(FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LEN, FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LEN) / 8 == sizeof(buffer)); pack_uint32_little_endian_(block->vendor_string.length, buffer, entry_length_len); if(write_cb(buffer, 1, entry_length_len, handle) != entry_length_len) @@ -3134,7 +3125,7 @@ FLAC__bool copy_n_bytes_from_file_(FILE *file, FILE *tempfile, off_t bytes, FLAC FLAC__ASSERT(bytes >= 0); while(bytes > 0) { - n = min(sizeof(buffer), (s...
2010 Dec 07
1
[ANNOUNCE] xorg-server 1.9.99.901
...emove fbcmap.c (bug 5436) Joe Shaw (1): fix a sign problem with valuator data. Jon TURNEY (17): Cygwin/X: Fix compilation after "delete pervasively use of DISPATCH_PROC" event_size is currently never assigned to in mieqProcessInputEvents(). Cygwin/X: Cleanup some VENDOR_STRING/VENDOR_CONTACT cruft Cygwin/X: Use normal apostrophe in XWin DDX help text Cygwin/X: unifdef XFree86Server Cygwin/X: Remove execute permission from source files Cygwin/X: Turn off the bad-function-cast warning for XWin code Cygwin/X: Clarify XKB options in XWin man...