summaryrefslogtreecommitdiff
path: root/src/input/input_stdin_fifo.c
AgeCommit message (Collapse)Author
2009-11-30Trim trailing space & reduce space+tab.Darren Salt
2009-02-10Fix broken size checks in various input plugins (ref. CVE-2008-5239).Darren Salt
2009-01-04Fix for CVE-2008-5239Matthias Hopf
xine-lib 1.1.12, and other 1.1.15 and earlier versions, does not properly handle (a) negative and (b) zero values during unspecified read function calls in input_file.c, input_net.c, input_smb.c, and input_http.c, which allows remote attackers to cause a denial of service (crash) or possibly execute arbitrary code via vectors such as (1) a file or (2) an HTTP response, which triggers consequences such as out-of-bounds reads and heap-based buffer overflows.
2008-05-07xine_xmalloc() deprecation: replace its use with static and non-zero size.Diego 'Flameeyes' Pettenò
The xine_xmalloc() function is going to be deprecated, as its behaviour is rarely needed as such, and it's thus misused. With this, almost all uses of xine_xmalloc() with static size (for instance the value returned by sizeof()) or with a size that is guaranteed not to be zero (like strlen()+1) are replaced with calls to either calloc(1, ...) or malloc(). malloc() is used whenever the allocated memory is going to be immediately overwritten, while calloc() is used in every other case, as it sets the whole memory area to zero. --HG-- extra : transplant_source : %8F%98%EC%02%1E%83%F0s%06X%83C%205Y%80%B12%CC%E1
2007-11-10Delete most of the CVS $Id$/$Log$ lines.Darren Salt
--HG-- extra : transplant_source : %E0%D0%C5%8B%BEU%DD%24%5D7%1F%ADV%AD%EB%23%CBU%80%EB
2007-11-09Update FSF address on non-contributed code and COPYING files.Diego 'Flameeyes' Pettenò
For contributed code, leave whatever the version we last synced for is using to make simpler future syncs.
2007-02-20Fix a lot of format warnings in lprintf calls (mostly %ldd -> %"PRId64").Diego 'Flameeyes' Pettenò
CVS patchset: 8608 CVS date: 2007/02/20 00:34:55
2007-01-19Make get_mrl return a const char * too.Diego 'Flameeyes' Pettenò
CVS patchset: 8524 CVS date: 2007/01/19 01:05:24
2007-01-18Make get_description function return a const char * rather than just a char ↵Diego 'Flameeyes' Pettenò
*, so that 'return "something"' is valid. Note that _()/gettext() returns a char * but statically allocated, that the documentation considers constant. CVS patchset: 8519 CVS date: 2007/01/18 23:02:18
2006-07-10Implement visibility support, available on GCC 4.0 and later and on some 3.4 ↵Diego 'Flameeyes' Pettenò
(through backports), to avoid exporting unneeded internal symbols, making plugins' loading faster and use of internal copies of libraries more solid. It should automatically fall back to the old way in GCCs that does not support -fvisibility=hidden, but has to be tested carefully. No issues were found in the months of testing in Gentoo, but this requires special attention anyway. CVS patchset: 8101 CVS date: 2006/07/10 22:08:12
2006-06-20Fix generic warnings.Diego 'Flameeyes' Pettenò
CVS patchset: 8065 CVS date: 2006/06/20 01:46:41
2006-05-03Make various arrays and structures (mainly xine_plugin_info) const.Darren Salt
(Diego Pettenò) CVS patchset: 7985 CVS date: 2006/05/03 19:46:06
2005-11-21*BUGFIX*František Dvořák
Fixed funny bug under Windows due to stdin plugin: each 0x0D was eaten. CVS patchset: 7809 CVS date: 2005/11/21 10:32:44
2005-10-14input plugin time seeking patch.Miguel Freitas
hopefuly somebody will be able to help fixing the mess i did in dvdnav ;) CVS patchset: 7759 CVS date: 2005/10/14 21:02:16
2005-02-06Added a plugin_node_t pointer to the input plugin struct.Thibaut Mattern
Incremented all input plugins API version. CVS patchset: 7384 CVS date: 2005/02/06 15:00:34
2005-02-03**BUGFIX**František Dvořák
Fixed build on solaris: - use libresolv in hstrerror check - replace PRIiMAX and PRIXMAX by PRIdMAX and PRIxMAX Removed timezone struct for MinGW from public os_types.h, update header comment. Fixed build musepack library on some platforms using xine types. Thanks to Niki W. Waibel for reporting and testing. CVS patchset: 7378 CVS date: 2005/02/03 07:19:03
2004-09-17Warning patch for Win32 - casted off_t to intmax_t for printing.František Dvořák
CVS patchset: 6979 CVS date: 2004/09/17 19:21:33
2004-07-20Add const to get_identifier return type since that's n fact what itRocky Bernstein
is. Should protect against a plugin returning a malloc'd variable for example. CVS patchset: 6821 CVS date: 2004/07/20 00:50:10
2004-06-13implement steps 1, 2, 3 and 4 of the seeking proposal:Miguel Freitas
http://article.gmane.org/gmane.comp.video.xine.devel/9532 it is now up to demuxers to decide what the 0..65535 position means. demuxers tested: ogg, voc, flac, rm, asf, vqa, vob, avi, y4m, au, mov, ts, mp3, mpg, wav, ra, mve CVS patchset: 6686 CVS date: 2004/06/13 21:28:52
2004-04-19- also accept "fd://0" as an mrl for stdin input, as used by GStreamerBastien Nocera
CVS patchset: 6414 CVS date: 2004/04/19 20:20:51
2003-12-14API version bounceSiggi Langauf
CVS patchset: 5912 CVS date: 2003/12/14 22:13:22
2003-12-05cleanup phase II. use xprintf when it's relevant, use xine_xmalloc when it's ↵Daniel Caujolle-Bert
relevant too. Small other little fix (can't remember). Change few internal function prototype because it xine_t pointer need to be used if some xine's internal sections. NOTE: libdvd{nav,read} is still too noisy, i will take a look to made it quit, without invasive changes. To be continued... CVS patchset: 5844 CVS date: 2003/12/05 15:54:56
2003-11-26lprintf cleanup, pass I.Daniel Caujolle-Bert
CVS patchset: 5796 CVS date: 2003/11/26 19:43:26
2003-11-11rename internal API function (_x_<function>).Daniel Caujolle-Bert
CVS patchset: 5721 CVS date: 2003/11/11 18:44:50
2003-11-08use io_helper functions.Thibaut Mattern
CVS patchset: 5710 CVS date: 2003/11/08 22:21:48
2003-05-02require slash on mrl syntax.Miguel Freitas
exception: file plugin can accept relative paths (see message on xine-devel) CVS patchset: 4751 CVS date: 2003/05/02 15:02:11
2003-04-26bump up input plugin interface version numberGuenter Bartsch
CVS patchset: 4692 CVS date: 2003/04/26 22:34:31
2003-04-13xine_read_abort for pnmMiguel Freitas
CVS patchset: 4603 CVS date: 2003/04/13 18:49:12
2003-04-13- some cleanupsMiguel Freitas
- may seek back inside preview_size - use xine_read_abort at stdin_fifo CVS patchset: 4602 CVS date: 2003/04/13 17:31:40
2003-04-13Input plugin api change:Thibaut Mattern
old open() function replaced by : *_class_get_instance() : return an instance if the plugin handles the mrl *_plugin_open() : open the stream CVS patchset: 4598 CVS date: 2003/04/13 16:02:53
2003-03-20unused codeMiguel Freitas
CVS patchset: 4455 CVS date: 2003/03/20 23:26:11
2003-03-14testing the idea of aborting because of action pending AND read timeout.Miguel Freitas
we should extend it to network plugins if it works well CVS patchset: 4421 CVS date: 2003/03/14 23:52:07
2003-03-06stdin and rawdv fixes from Dan DennedyMiguel Freitas
(includes dvaudio support) CVS patchset: 4350 CVS date: 2003/03/06 23:56:47
2003-02-20fixed copious bugs in the _read(), _seek() and _get_current_pos()Mike Melanson
functions with respect to preview buffers CVS patchset: 4213 CVS date: 2003/02/20 05:28:52
2003-01-31- MAX_PREVIEW_SIZE = 4096Miguel Freitas
- new fb driver with zero copy CVS patchset: 4058 CVS date: 2003/01/31 14:06:03
2003-01-17fifo: MRLs should work nowMichael Roitzsch
CVS patchset: 3945 CVS date: 2003/01/17 17:50:20
2002-12-27man errno: "must not be explicitly declared; errno may be a macro"Miguel Freitas
(thanks Chris Rankin for noticing) CVS patchset: 3693 CVS date: 2002/12/27 16:47:10
2002-12-21- add buf->decoder_info_ptr: portability for systems where pointer hasMiguel Freitas
different sizeof than integer. - add extra_info structure to pass informations from input/demuxers down to the output frame. this can be used, for example, to pass the frame number of a frame (when known by decoder). also, immediate benefict is that we now have a slider which really shows the current position of the playing stream. new fields can be added to extra_info keeping binary compatibility - bumpy everybody's api versions CVS patchset: 3603 CVS date: 2002/12/21 12:56:44
2002-12-12fix stdin plugin, cosmetic cleanups in mp3 demuxerGuenter Bartsch
CVS patchset: 3493 CVS date: 2002/12/12 12:00:23
2002-11-20engine modifications to allow post plugin layer:Michael Roitzsch
* new public output interface xine_{audio,video}_port_t instead of xine_{ao,vo}_driver_t, old names kept as aliases for compatibility * modified the engine to allow multiple streams per output * renaming of some internal structures according to public changes * moving SCR out of per-stream-metronom into a global metronom_clock_t residing in xine_t and therefore easily available to the output layer * adapting all available plugins (note to external projects: the compiler will help you a lot, if a plugin compiles, it is adapted, because all changes add new parameters to some functions) * bump up all interface versions because of xine_t and xine_stream_t changes CVS patchset: 3312 CVS date: 2002/11/20 11:57:38
2002-11-17bring eject back: no eject function if the plugin does not support itMichael Roitzsch
CVS patchset: 3281 CVS date: 2002/11/17 17:48:47
2002-11-07return of the stdin pluginGuenter Bartsch
CVS patchset: 3200 CVS date: 2002/11/07 23:05:01
2002-10-31adapt input plugins to new MRL syntaxMichael Roitzsch
(mostly turning :// into :/) CVS patchset: 3113 CVS date: 2002/10/31 17:00:44
2002-10-23fix capabilites (preview)Guenter Bartsch
CVS patchset: 2975 CVS date: 2002/10/23 21:19:42
2002-09-06introduce "const"Michael Roitzsch
fix some input plugins that would not copy the mrl on open CVS patchset: 2623 CVS date: 2002/09/06 18:13:10
2002-09-05remove plugin's private priority and interface membersMichael Roitzsch
adapt some more decoders CVS patchset: 2618 CVS date: 2002/09/05 22:18:50
2002-09-05make all the plugin init functions staticMichael Roitzsch
(geez this was a job) CVS patchset: 2616 CVS date: 2002/09/05 20:44:38
2002-09-04merging in the new_api branch ... unfortunately video_out / vo_scale is ↵Guenter Bartsch
broken now ... matthias/miguel: please fix it :-) CVS patchset: 2606 CVS date: 2002/09/04 23:31:05
2002-07-05Bump up version numbers due to changes in xine_tMichael Roitzsch
CVS patchset: 2214 CVS date: 2002/07/05 17:31:59
2002-05-25patch from Michael Roitzsch:Siggi Langauf
increased interface version numbers, to reflect the xine_t change CVS patchset: 1939 CVS date: 2002/05/25 19:19:16