Changeset 2387d9b41dd4cca510a032c0141580a700a81d64
- Timestamp:
- 08/04/03 04:06:13
(6 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1049767573 +0000
- git-parent:
[6bbf004ec5813a76f7443fa627a3833bfd1b3d80]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1049767573 +0000
- Message:
* modules/gui/skins/src/event.cpp, modules/gui/skins/src/event.h:
fixed 2 nasty buffer overflows. This fixes the last crashes I've got
with the skins interface.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rfd76cff |
r2387d9b |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2003 VideoLAN |
|---|
| 5 | | * $Id: event.cpp,v 1.3 2003/04/01 12:24:54 gbazin Exp $ |
|---|
| | 5 | * $Id: event.cpp,v 1.4 2003/04/08 02:06:13 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> |
|---|
| … | … | |
| 97 | 97 | void Event::PostTextMessage( string text ) |
|---|
| 98 | 98 | { |
|---|
| 99 | | char *txt = new char[text.size()]; |
|---|
| | 99 | char *txt = new char[text.size()+1]; |
|---|
| 100 | 100 | strcpy( txt, text.c_str() ); |
|---|
| 101 | 101 | OSAPI_PostMessage( NULL, CTRL_SET_TEXT, (unsigned int)this, (long)txt ); |
|---|
| r8558137 |
r2387d9b |
|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2003 VideoLAN |
|---|
| 5 | | * $Id: event.h,v 1.2 2003/03/20 09:29:07 karibu Exp $ |
|---|
| | 5 | * $Id: event.h,v 1.3 2003/04/08 02:06:13 gbazin Exp $ |
|---|
| 6 | 6 | * |
|---|
| 7 | 7 | * Authors: Olivier Teuli� <ipkiss@via.ecp.fr> |
|---|
| … | … | |
| 39 | 39 | //--------------------------------------------------------------------------- |
|---|
| 40 | 40 | |
|---|
| 41 | | #define MAX_EVENT_SIZE 20 |
|---|
| | 41 | #define MAX_EVENT_SIZE 30 |
|---|
| 42 | 42 | #define MAX_PARAM_SIZE 20 |
|---|
| 43 | 43 | |
|---|