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

tarantool / tarantool / 16469240759
88%

Build:
DEFAULT BRANCH: master
Ran 23 Jul 2025 11:37AM UTC
Jobs 1
Files 511
Run time 2min
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

23 Jul 2025 11:21AM UTC coverage: 87.577% (+0.02%) from 87.553%
16469240759

push

github

sergepetrenko
box: fix misleading errors on privilege revoke from admin

Trying to revoke privileges from an admin user or a super role results
in misleading errors:
```
error: 'Tuple field 5 (privilege) type does not match one required by operation:
    expected unsigned, got integer'
```

The reason is that privileges use bit module for privilege grant/revoke,
and this module operates 32-bit **signed** integers (see
https://bitop.luajit.org/semantics.html#range for details). So any bit
operation on a privilege set greater than 2^31 (for example,
box.priv.ALL == 2^32 - 1) results in a negative number:

```lua
tarantool> bit.band(box.priv.ALL, bit.bnot(box.priv.W))
---
- -3
...

```

Fortunately, this can be fixed by casting one of the operands to a
uint64_t type, so let's cast all granted or revoked privileges prior to
calculating the resulting privilege set.

Closes #11526

NO_DOC=bugfix

70700 of 124581 branches covered (56.75%)

103959 of 118706 relevant lines covered (87.58%)

1355767.78 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
88.2
-0.62% src/box/engine.c
1
95.31
-1.56% src/box/engine.h
1
90.14
-0.08% src/box/vy_log.c
1
95.74
-0.53% src/box/vy_range.c
1
84.62
0.34% src/box/xlog.c
1
96.3
-3.7% src/cpu_feature.c
2
93.02
-0.41% src/box/xrow_update_field.c
3
92.53
-0.09% src/box/vinyl.c
3
92.91
-0.13% src/lib/core/fiber.c
4
97.36
0.1% src/lib/msgpuck/msgpuck.h
6
95.2
-1.25% src/box/vy_read_iterator.c
6
87.88
-0.39% src/box/vy_run.c
Jobs
ID Job ID Ran Files Coverage
1 16469240759.1 23 Jul 2025 11:37AM UTC 511
87.58
GitHub Action Run
Source Files on build 16469240759
  • Tree
  • List 511
  • Changed 25
  • Source Changed 0
  • Coverage Changed 25
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 8de5bae0 on github
  • Prev Build on master (#16454608765)
  • Next Build on master (#16499410861)
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