← Back to team overview

canonical-partner-dev team mailing list archive

[Bug 986841] Re: Debug log created by Adobe Reader browser plugin (nppdf.so)

 

Here's a script to automate the fix from comment 3. Run as, e.g. "sudo
./fix_nppdf.py /opt/Adobe/Reader9/Browser/intellinux/nppdf.so".

#! /usr/bin/python3

import mmap, sys

target      = br'C:\nppdf32Log\debuglog.txt'
replacement = br'/dev/null'
replacement += b'\0' * (len(target) - len(replacement))

with open(sys.argv[1], 'r+') as f:
  m = mmap.mmap(f.fileno(), 0)
  offset = m.find(target)
  assert offset != -1
  m[offset:offset+len(target)] = replacement

-- 
You received this bug notification because you are a member of Canonical
Partner Developers, which is subscribed to acroread in Ubuntu.
https://bugs.launchpad.net/bugs/986841

Title:
  Debug log created by Adobe Reader browser plugin (nppdf.so)

To manage notifications about this bug go to:
https://bugs.launchpad.net/adobe-isv/+bug/986841/+subscriptions


References