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

read-xauth-entry doesn't handle empty string for number field #4

Closed
sabetts opened this issue May 18, 2012 · 1 comment
Closed

read-xauth-entry doesn't handle empty string for number field #4

sabetts opened this issue May 18, 2012 · 1 comment

Comments

@sabetts
Copy link

sabetts commented May 18, 2012

This base64 encoded .XAuthority file breaks read-xauth-entry. It's the 4th entry that breaks it.

steps to reproduce:

  1. base64 decode this file and save it somewhere:

AAAABKwRqm4AATAAEk1JVC1NQUdJQy1DT09LSUUtMQAQFQ9gIfF5tJYrNva+w5NQlAAGABD+
gAAAAAAAAAIkVP/+mgWLAAEwABJNSVQtTUFHSUMtQ09PS0lFLTEAEBUPYCHxebSWKzb2vsOT
UJQBAAAEYXJjaAABMAASTUlULU1BR0lDLUNPT0tJRS0xABAVD2Ah8Xm0lis29r7Dk1CUAPwA
AAAAABJNSVQtTUFHSUMtQ09PS0lFLTEAEIeK/9/M6kB1huLzpUT9JtsAAAAEfwAAAQABMQAS
TUlULU1BR0lDLUNPT0tJRS0xABC5ScGiDUUsDC5hGetC+chmAQAABGFyY2gAATEAEk1JVC1N
QUdJQy1DT09LSUUtMQAQuUnBog1FLAwuYRnrQvnIZgAAAAR/AAABAAEyABJNSVQtTUFHSUMt
Q09PS0lFLTEAEBEIvywuCk6cr1hC7BzdJecBAAAEYXJjaAABMgASTUlULU1BR0lDLUNPT0tJ
RS0xABARCL8sLgpOnK9YQuwc3SXn

  1. run this code. Point it to your decoded file:

(with-open-file (s #p"/path/to/xauthority-file" :element-type '(unsigned-byte 8)) (xlib::read-xauth-entry s) (xlib::read-xauth-entry s) (xlib::read-xauth-entry s) (xlib::read-xauth-entry s))

@mschristiansen
Copy link

+1 Same problem here.

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

3 participants