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

shader-slang / slang-rhi / 26273610842

22 May 2026 07:05AM UTC coverage: 68.723% (+0.3%) from 68.421%
26273610842

push

github

web-flow
fix: use clamped coordinate in TextureViewImpl::_getTexelPtr (#752)

The _getTexelPtr function computes a clamped coordinate value 'coord' but
then uses the original unclamped 'texelCoords[axis]' for the offset
calculation. This means the bounds clamping logic is completely
ineffective, allowing out-of-range texel coordinates to read or write
arbitrary memory relative to the texture data buffer.

Fix by using the clamped 'coord' variable instead of 'texelCoords[axis]'
in the offset calculation, matching the pattern used in SampleLevel().

12048 of 20406 branches covered (59.04%)

Branch coverage included in aggregate %.

0 of 1 new or added line in 1 file covered. (0.0%)

19 existing lines in 2 files now uncovered.

35613 of 48946 relevant lines covered (72.76%)

278737.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

39.0
/src/cpu/cpu-texture.cpp


Source Not Available

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