• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bovigo / vfsStream / 364
94%
master: 95%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/cache-3.0.1
DEFAULT BRANCH: master
Ran 19 Feb 2020 04:17PM UTC
Jobs 1
Files 21
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
364

push

travis-ci

mikey179
limit maximum amount of bytes to read, fixes #216

The result of rand() can be numbers of up to 2147483647 (PHP 7.3.14 on macOS). Before the actual file read PHP allocates the amount of memory specified by the second argument to fread() to ensure everything fits into memory. For unit tests that's bad, as it can mean of allocating 2 GB of memory.

Therefore this fix limits the amount to 10000. For typical vfsStream usages that's more than sufficient. The usage of rand() is kept to verify that the functionality tested works independent of the amount of bytes to be read from the file.

838 of 887 relevant lines covered (94.48%)

63.62 hits per line

Jobs
ID Job ID Ran Files Coverage
15 364.15 (DEPENDENCIES=default) 19 Feb 2020 04:16PM UTC 0
94.48
Travis Job 364.15
Source Files on build 364
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #364
  • 343986c8 on github
  • Next Build on bugfix/issue_216 (#366)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc