lp:~crass/codecrypt/trunk
- Get this branch:
- bzr branch lp:~crass/codecrypt/trunk
Branch information
Import details
This branch is an import of the HEAD branch of the Git repository at https://github.com/exaexa/codecrypt.git.
Last successful import was .
Recent revisions
- 464. By Mirek Kratochvil <email address hidden>
-
continue the good practice with replacing unneccessary op[]
- 462. By Tom Li <email address hidden>
-
hash.h: fix std::vector access violation.
Signed-off-by: Tom Li <email address hidden>
- 461. By Tom Li <email address hidden>
-
keyring.cpp: fix std::vector access violation
Signed-off-by: Tom Li <email address hidden>
- 460. By Tom Li <email address hidden>
-
sc.h: correct access violation in load_key_vector(), close #2.
In load_key_vector(), the program passes a std::vector<byte> to
a C-style function, load_key (const byte*begin, const byte*end)
by creating referencesload_key (& (K[0]), & (K[K.size()]));
However, accessing the one-past-the-last element in a std::vector
via [] is not allowed in C++, it triggers an assertion failure.Assertion '__builtin_
expect( __n < this->size(), true)' failed. In this commit, we use K.data() and K.data() + K.size() to expose
the underlying pointers and pass them to the C function.Signed-off-by: Tom Li <email address hidden>
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)