mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Apply 02-fix-filename-buffer-overflow patch from debian libjasper-dev (1.900.1-13) package
This commit is contained in:
parent
4157a640ba
commit
c7db1c1cc8
3
3rdparty/libjasper/jasper/jas_stream.h
vendored
3
3rdparty/libjasper/jasper/jas_stream.h
vendored
@ -77,6 +77,7 @@
|
||||
#include <jasper/jas_config.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
#if defined(HAVE_FCNTL_H)
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
@ -251,7 +252,7 @@ typedef struct {
|
||||
typedef struct {
|
||||
int fd;
|
||||
int flags;
|
||||
char pathname[L_tmpnam + 1];
|
||||
char pathname[PATH_MAX + 1];
|
||||
} jas_stream_fileobj_t;
|
||||
|
||||
#define JAS_STREAM_FILEOBJ_DELONCLOSE 0x01
|
||||
|
Loading…
Reference in New Issue
Block a user