• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apache / commons-crypto / 320
84%

Build:
DEFAULT BRANCH: master
Ran 05 Oct 2018 04:46PM UTC
Jobs 1
Files 35
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
320

push

travis-ci

vanzin
CRYPTO-141: Avoid calling operations on an invalid context.

There are two main changes here.

The first one wraps the OpenSSL cipher context with some extra state
needed by the JNI wrapper. This allows checking whether it's safe to
call operations such as EVP_CipherUpdate, which can cause problems if
the context is not properly initialized. This more closely follows the
semantics of the Java interface.

The second change avoids cleaning up the OpenSSL context when an error
happens. Doing that would invalidate the memory used by the context,
but the Java code would still have the address of the now invalid
context, and calling another JNI method would crash the JVM. This
ties the lifecycle of the OpenSSL context to the Java cipher instance.

As part of those changes, all uses of EVP_CIPHER_CTX_cleanup were
removed; the remaining cleanup paths use EVP_CIPHER_CTX_free,
which is its replacement.

There are a few more changes that are not required for the above but
helped with testing and debugging:

- some very minor changes in Java code, especially using final fields
  where they make sense.
- enable -Wall and -Werror when compiling on linux64.
- fixed some minor issues with error handling in the native code.

Closes #80

5 of 5 new or added lines in 3 files covered. (100.0%)

1282 of 1739 relevant lines covered (73.72%)

0.74 hits per line

Jobs
ID Job ID Ran Files Coverage
1 320.1 05 Oct 2018 04:46PM UTC 0
73.72
Travis Job 320.1
Source Files on build 320
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #320
  • 9456415c on github
  • Prev Build on master (#314)
  • Next Build on master (#340)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc