I keep getting this error trying to run the debugger:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00007fff8c2414f0 in strlen ()
int main(int argc, char *argv)
int keyLen = strlen(s2);
printf("Please enter a string of text to be encrypted!\n");
string p = GetString();
for (int i = 0, n = strlen(p); i < n; i++)
int sum = (p[i] - 'A') + (s2[i % keyLen] - 'A');
char c = 'A' + sum%26;
I finally got it thanks to hmjd I was running it incorrectly I would start the program
gdb vignere HHHHH
Which is incorrect I ran it
gdb vignere run HHHHHH
and it worked perfect!