Menu

#475 [MySQL] SET editing form INT overflow

Git
closed-fixed
nobody
None
5
2025-03-10
2015-10-23
Lukyer
No

Adminer 4.2.3-dev (but probably all versions)
MySQL 5.7.7-rc-log
PHP x86 Version 5.6.2 FastCGI
Windows 8.1 64b

SET can obtain up to 64 items. Unfortunately because of bitwise arithmetics in Adminer editing form overflows by 32b long INT on Windows PHP interpret. Then not only checkboxes that should be checked are checked but also every n+32 checkbox is checked as well.

Problematic code:
$checked = (is_int($value) ? ($value >> $i) & 1 : in_array($val, explode(",", $value), true));

functions.inc.php, line 891

On 64b PHP interpret (linux os) problem doesn't appear.

Discussion

  • Jakub Vrána

    Jakub Vrána - 2017-02-20
    • status: open --> open-accepted
     
  • Jakub Vrána

    Jakub Vrána - 2017-02-20

    PHP 7 Windows builds support 64 bits but Adminer should fix this for other versions.

     
  • Jakub Vrána

    Jakub Vrána - 2018-01-30
    • summary: SET editing form INT overflow --> [MySQL] SET editing form INT overflow
     
  • Jakub Vrána

    Jakub Vrána - 2025-03-10
    • status: open-accepted --> closed-fixed
     
  • Jakub Vrána

    Jakub Vrána - 2025-03-10

    Fixed by 37e63dd8.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.