We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
buf is only 256 size, but vsnprintf can write up to BUFSIZ, cause stack overflow
buf
vsnprintf
BUFSIZ
BiORAM-SGX/Enclave/Enclave.cpp
Lines 104 to 113 in 6e8df40
Although ptr is in, when it is null, TBridge will pass it to real ecall
ptr
in
BiORAM-SGX/Enclave/Enclave.edl
Line 33 in 6e8df40
But in cp_source, not check ptr is not null
cp_source
Lines 1052 to 1056 in 6e8df40
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Stack overflow
buf
is only 256 size, butvsnprintf
can write up toBUFSIZ
, cause stack overflowBiORAM-SGX/Enclave/Enclave.cpp
Lines 104 to 113 in 6e8df40
Null Pointer Dereference
Although
ptr
isin
, when it is null, TBridge will pass it to real ecallBiORAM-SGX/Enclave/Enclave.edl
Line 33 in 6e8df40
But in
cp_source
, not checkptr
is not nullBiORAM-SGX/Enclave/Enclave.cpp
Lines 1052 to 1056 in 6e8df40
The text was updated successfully, but these errors were encountered: