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

jbremer / sflock / 97
95%

Build:
DEFAULT BRANCH: master
Ran 21 Feb 2017 10:07PM UTC
Jobs 2
Files 20
Run time 140min
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
97

push

travis-ci

jbremer
properly handle a certain .msg file

This commit fixes two issues. First of all, apparently the .msg file
only has an ASCII filename specification for the embedded .doc file and
as such the .decode() for the Unicode filename is throwing an exception.
Secondly, the .doc filename has a trailing null-byte, potentially
causing issues with our unpacking mechanism.

So in our Cuckoo Sandbox use-case we transform the .msg into a .zip and
submit it to Cuckoo with the filename of our target as parameter; now
for the extraction part (extracting the .doc from the .zip) it's
necessary to include the trailing null-byte as otherwise we simply get a
404 file not found back from our OLE unpacker. However, when submitting
the analysis to Cuckoo, the filename should not have the trailing
null-byte for several obvious reasons:
* .zip files don't support trailing null-bytes (zipfile strips 'em)
* SQL databases don't like null-bytes (PostgreSQL seems to strip it)
* NTFS & Python don't like null-bytes either

This leaves us with the following solution/workaround: keep the trailing
null-bytes in the "extrpath" and "relapath" fields and strip 'em off
from the "filename" field. This seems to provide the desired outcome.

664 of 714 relevant lines covered (93.0%)

1.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 97.1 21 Feb 2017 10:07PM UTC 0
93.0
Travis Job 97.1
2 97.2 22 Feb 2017 12:27AM UTC 0
86.27
Travis Job 97.2
Source Files on build 97
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #97
  • ce3cae77 on github
  • Prev Build on master (#95)
  • Next Build on master (#100)
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