Changeset 1703d8421a3b582da45c837f42e04d1ea0e8d609
- Timestamp:
- 03/11/08 02:55:00
(2 months ago)
- Author:
- Jean-Baptiste Kempf <jb@videolan.org>
- git-committer:
- Jean-Baptiste Kempf <jb@videolan.org> 1205200500 -0700
- git-parent:
[18eb4fd5a75b6429d1d7058a8967696be701a00b]
- git-author:
- Jean-Baptiste Kempf <jb@videolan.org> 1205200500 -0700
- Message:
Check after calloc to avoid null dereference.
Should Close #1499
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re14f211 |
r1703d84 |
|
| 1245 | 1245 | } |
|---|
| 1246 | 1246 | |
|---|
| | 1247 | /* Check if the calloc went correctly */ |
|---|
| | 1248 | if( tk->p_subpackets == NULL ) |
|---|
| | 1249 | { |
|---|
| | 1250 | tk->i_subpackets = 0; |
|---|
| | 1251 | msg_Err( p_demux, "Can't alloc subpacket" ); |
|---|
| | 1252 | return VLC_EGENERIC; |
|---|
| | 1253 | } |
|---|
| | 1254 | |
|---|
| 1247 | 1255 | tk->p_es = es_out_Add( p_demux->out, &fmt ); |
|---|
| 1248 | 1256 | |
|---|