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

segmentation fault if attributes do not satisfy the policy #6

Open
GoogleCodeExporter opened this issue Jan 23, 2016 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Setup scheme: abe-setup -m CP
2. Generate user key: abe-keygen -m CP -a 'ONE' -o userCP.key
3. Encryption: abe-enc -m CP -i filename.txt -p "((ONE and TWO) or THREE)" -o 
outfile
4. Decryption: abe-dec -m CP -k userCP.key -f outfile.cpabe

What is the expected output? What do you see instead?
The expected output is any message. However, I see a 'segmentation fault'.

What version of the product are you using? On what operating system?
fenc-0.2.0 on Linux

Please provide any additional information below.
Regardless the return value of libfenc_decrypt(), abe_decrypt() in 
tools/mgabe-dec.c was extracting the AES key. In fact, abe_decrypt() should 
extract the AES key only if libfenc_decrypt() does not return any error.

I have developed a patch (please see the attachment) in which a check has been 
added to avoid the segmentation fault.

Regards,
Rizwan

Original issue reported on code.google.com by mrizwan...@gmail.com on 6 Mar 2013 at 1:03

Attachments:

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

No branches or pull requests

1 participant