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

Certain pwsafe passwords my cause Malformed UTF-8 #1

Open
hartsjc opened this issue Jan 29, 2020 · 1 comment
Open

Certain pwsafe passwords my cause Malformed UTF-8 #1

hartsjc opened this issue Jan 29, 2020 · 1 comment

Comments

@hartsjc
Copy link

hartsjc commented Jan 29, 2020

clipsafe -f ~/XXXX.psafe3
File: ~/XXXX.psafe3
Enter password safe combination:
Malformed UTF-8 character: \x81 (unexpected continuation byte 0x81, with no preceding start byte) in pack at /usr/local/src/clipsafe/clipsafe line 239, line 1.

Malformed UTF-8 character (fatal) at clipsafe line 239, line 1.

While not robust testing, the following line 212 seems to resolve the issue for me.

211                 $plain .= $buf;
212                 utf8::encode($buf);
213                 #print unpack("H*", $buf), "\n";
@Bill-Costa
Copy link

Hit the same problem and the suggested fix solved it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants