com php-src: prevent flags overflows: main/php_streams.h
| From: | Anatol Belski | Date: | Wed, 05 Oct 2016 20:53:21 +0000 |
| Subject: | com php-src: prevent flags overflows: main/php_streams.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94844@lists.php.net to get a copy of this message | ||
Commit: 4b41973ba12947d569c436db2162d0be7c25e365
Author: Anatol Belski <ab@php.net> Thu, 15 Sep 2016 13:12:26 +0200
Parents: 41d04079e39747312ca8e7ba7117f06c399bd50e
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4b41973ba12947d569c436db2162d0be7c25e365
Log:
prevent flags overflows
Sometimes int is overflown. That might still come out with a right
result, but is ofc not clean.
Changed paths:
M main/php_streams.h
Diff:
diff --git a/main/php_streams.h b/main/php_streams.h
index 5da29a2..e205118 100644
--- a/main/php_streams.h
+++ b/main/php_streams.h
@@ -210,7 +210,7 @@ struct _php_stream {
char *orig_path;
zend_resource *ctx;
- int flags; /* PHP_STREAM_FLAG_XXX */
+ uint32_t flags; /* PHP_STREAM_FLAG_XXX */
int eof;