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

bovigo / vfsStream / 365
94%
master: 95%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/cache-3.0.1
DEFAULT BRANCH: master
Ran 19 Feb 2020 04:20PM UTC
Jobs 1
Files 21
Run time 4s
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
365

Pull #217

travis-ci

web-flow
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.
Pull Request #217: Limit maximum amount of bytes to read, fixes #216

838 of 887 relevant lines covered (94.48%)

63.62 hits per line

Jobs
ID Job ID Ran Files Coverage
15 365.15 (DEPENDENCIES=default) 19 Feb 2020 04:19PM UTC 0
94.48
Travis Job 365.15
Source Files on build 365
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #365
  • Pull Request #217
  • PR Base - master (#360)
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