Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

screwim_decrypt integer overflow #14

Closed
3 tasks done
Joungkyun opened this issue Mar 7, 2021 · 0 comments
Closed
3 tasks done

screwim_decrypt integer overflow #14

Joungkyun opened this issue Mar 7, 2021 · 0 comments
Assignees
Labels
Milestone

Comments

@Joungkyun
Copy link
Member

Joungkyun commented Mar 7, 2021

Bug Environments

  • Product Version : 1.0.2 and master branch
  • PHP Version: 8.0 and before
  • PHP SAPI: mayby all

Describe the bug

If the input value of screwim_decrypt is not encrypted, Integer orverflow occurs.

Warning: no Crypted data in /path/z.php on line 2
PHP Fatal error:  Possible integer overflow in memory allocation (18446744073709551605 + 4096) in /path/z.php on line 2

Fatal error: Possible integer overflow in memory allocation (18446744073709551605 + 4096) in /path/z.php on line 2

To Reproduce

<?php
$data = "11";
$val = screwim_decrypt ($data);
?>

Expected behavior

Fatal error should not occur.

@Joungkyun Joungkyun added the bug label Mar 7, 2021
@Joungkyun Joungkyun self-assigned this Mar 7, 2021
@Joungkyun Joungkyun added this to the 1.0.3 milestone Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant