]> granicus.if.org Git - php/commitdiff
prevent flags overflows
authorAnatol Belski <ab@php.net>
Thu, 15 Sep 2016 11:12:26 +0000 (13:12 +0200)
committerAnatol Belski <ab@php.net>
Wed, 5 Oct 2016 20:53:21 +0000 (22:53 +0200)
Sometimes int is overflown. That might still come out with a right
result, but is ofc not clean.

main/php_streams.h

index 5da29a2f4f69f727a51476b6d86ce476569bbb09..e205118bd7f6aebccfd432b4548281e16c1695ec 100644 (file)
@@ -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;