~ubuntu-branches/ubuntu/hardy/vlc/hardy

« back to all changes in this revision

Viewing changes to src/control/core.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2007-06-25 01:53:37 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20070625015337-9jqzr0atij6hzxnp
Tags: 0.8.6.release.c-0ubuntu1
* SECURITY UPDATE: Format string injection in multiple plugins could
  lead to arbitrary code execution and/or DoS.
* New upstream security and bugfix release, 0.8.6c (LP: #121511).
* References
  CVE-2007-0256
  CVE-2007-3316
* debian/patches/: Remove 020_flac.diff and 030_CVE-2007-0017.diff
  (subsumed by new upstream release).
* debian/vlc-nox.install: Add libtelx_plugin.so (fixes FTBFS).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * core.c: Core libvlc new API functions : initialization, exceptions handling
3
3
 *****************************************************************************
4
4
 * Copyright (C) 2005 the VideoLAN team
5
 
 * $Id: core.c 17322 2006-10-28 14:49:42Z jpsaman $
 
5
 * $Id: core.c 20501 2007-06-10 20:10:40Z pdherbemont $
6
6
 *
7
7
 * Authors: Cl�ent Stenac <zorglub@videolan.org>
8
8
 *
45
45
 
46
46
inline int libvlc_exception_raised( libvlc_exception_t *p_exception )
47
47
{
48
 
    return p_exception->b_raised;
 
48
    return (NULL != p_exception) && p_exception->b_raised;
49
49
}
50
50
 
51
51
inline char* libvlc_exception_get_message( libvlc_exception_t *p_exception )
76
76
    vasprintf( &p_exception->psz_message, psz_format, args );
77
77
    va_end( args );
78
78
 
79
 
    if( p_exception == NULL ) return;
80
79
    p_exception->b_raised = 1;
81
80
}
82
81
 
119
118
    vlc_object_release( p_instance->p_vlc );
120
119
    VLC_CleanUp( p_instance->i_vlc_id );
121
120
    VLC_Destroy( p_instance->i_vlc_id );
 
121
    free( p_instance );
122
122
}
123
123
 
124
124
int libvlc_get_vlc_id( libvlc_instance_t *p_instance )