You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main.asm have a bug: When we enter a large string then run the program again with a smaller size string the encryption outputs a string of size equals to the largest string entered filled with garbage values.
Failed test cases:
Enter a string: qqqqqqqq
Enter 4 keys
Enter Key 1: 0
Enter Key 2: 0
Enter Key 3: 0
Enter Key 4: 0
Program Output:
✔️
Enter a string: q
Enter 4 keys
Enter Key 1: 0
Enter Key 2: 0
Enter Key 3: 0
Enter Key 4: 0
MostafaAE
changed the title
Bug in main.asm when we enter a large string then run the program again with a smaller string the encryption output is wrong
Bug in main.asm when we enter a large string then run the program again with a smaller size string the encryption output is wrong
Jan 8, 2021
Fri 8/1/2021
I solved this bug by adding a new variable called printString to copy exactly the same number of characters the user input from teaOut and pass it to MsgBox .
BUG in main.asm
main.asm have a bug: When we enter a large string then run the program again with a smaller size string the encryption outputs a string of size equals to the largest string entered filled with garbage values.
Failed test cases:
Enter a string: qqqqqqqq
Enter 4 keys
Enter Key 1: 0
Enter Key 2: 0
Enter Key 3: 0
Enter Key 4: 0
Program Output:
✔️
Enter a string: q
Enter 4 keys
Enter Key 1: 0
Enter Key 2: 0
Enter Key 3: 0
Enter Key 4: 0
Program Output:
❌
-------------------------------------------------------------------------------------------------------------------------
Expected Output:
The Second output must be 1 character only not 8!
✔️
The text was updated successfully, but these errors were encountered: