mirror of
https://github.com/phpv8/v8js.git
synced 2024-12-22 12:51:52 +00:00
Fall back to arbitrary PATH_MAX upper bound
This commit is contained in:
parent
83a17b5e6a
commit
0fed780320
@ -42,6 +42,14 @@ extern "C" {
|
||||
#include <vector>
|
||||
#include <mutex>
|
||||
|
||||
#ifndef PATH_MAX
|
||||
/* Some platforms (Windows among others) don't have a PATH_MAX, for the moment
|
||||
* just assume an arbitrary upper bound of 4096 chars.
|
||||
* Anyways we should fix (get rid of) the code that uses PATH_MAX as it doesn't
|
||||
* even check for buffer overflows. FIXME */
|
||||
#define PATH_MAX 4096
|
||||
#endif
|
||||
|
||||
/* V8Js Version */
|
||||
#define V8JS_VERSION "0.1.5"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user