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

jbremer / sflock / 97 / 1
95%
master: 95%

Build:
DEFAULT BRANCH: master
Ran 21 Feb 2017 10:07PM UTC
Files 20
Run time 1s
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

21 Feb 2017 09:37PM UTC coverage: 92.997% (+0.03%) from 92.968%
97.1

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%)

0.93 hits per line

Source Files on job 97.1
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 97
  • Travis Job 97.1
  • ce3cae77 on github
  • Prev Job for on master (#95.1)
  • Next Job for on master (#100.1)
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