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

large inputs not handled #145

Closed
MuhammadHassanRazaa opened this issue Mar 9, 2021 · 9 comments
Closed

large inputs not handled #145

MuhammadHassanRazaa opened this issue Mar 9, 2021 · 9 comments
Assignees
Labels

Comments

@MuhammadHassanRazaa
Copy link

get_string() and get_int() are not accepting large input (i.e. 2048 bits)

@kzidane
Copy link
Member

kzidane commented Mar 9, 2021

Can you please be more specific? What steps did you take to reproduce this problem?

@MuhammadHassanRazaa
Copy link
Author

when i pasted the following number in the input to the command a = get_int('long number'), the number gets truncated to 1/3rd while inputting. here's the video link.
image

@dmalan
Copy link
Member

dmalan commented Mar 9, 2021

@dmalan dmalan closed this as completed Mar 9, 2021
@MuhammadHassanRazaa
Copy link
Author

@dmalan it can't be cmd.exe limitation. The character count of my input is just 1233, but according to the link you've specified cmd can take 8191 characters once.

Secondly, if it's a cmd limitation, the built-in python input() function shouldn't work.

Looking forward :)

Regards

@dmalan
Copy link
Member

dmalan commented Mar 9, 2021

Ah, apologies, quite right, I'm seeing a 4096-char limit on Linux. We'll take a look!

@dmalan dmalan reopened this Mar 9, 2021
@dmalan dmalan self-assigned this Mar 9, 2021
@dmalan dmalan added the bug label Mar 9, 2021
@MuhammadHassanRazaa
Copy link
Author

MuhammadHassanRazaa commented Mar 9, 2021 via email

@kzidane
Copy link
Member

kzidane commented Mar 10, 2021

Should be fixed in #147.

@kzidane kzidane closed this as completed Mar 10, 2021
@dmalan
Copy link
Member

dmalan commented Mar 10, 2021

Thanks for reporting, @MuhammadHassanRazaa! There may still be platform-specific limitations, though, just fyi!

@MuhammadHassanRazaa
Copy link
Author

You're Welcome @dmalan 👍 :). I have tested this code on Kali Linux, Parrot, Windows(cmd and PowerShell) and Ubuntu, it is working perfectly with characters allowed in the respective shell.

Thank you for making the correction :)

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

3 participants