Skip to content

Conversation

@felker
Copy link
Member

@felker felker commented Oct 9, 2019

Trying to prevent the noise in stdout from the following packages:

  • matplotlib: from calling matplotlib.use() after certain import statements
  • numpy: from versions >= 1.6.3 from np.load() changes in response to https://nvd.nist.gov/vuln/detail/CVE-2019-6446
  • yaml: also a change in default loading behavior for security reasons

felker added 8 commits October 3, 2019 17:17
Will change to True only for the calls that may possibly load trusted
Pickles, not only generic .npz files.

https://docs.scipy.org/doc/numpy/reference/generated/numpy.load.html
Changed in version 1.16.3: Made default False in response to CVE-2019-6446.

Reported by @Wouter-VDP via Slack on 2019-08-08.
Even though these 2x calls load .npz files, they contain NumPy object
arrays of ShotList class objects that are implicitly serialized by
Pickle via np.savez() calls.

Also, fix bug with sorted(ShotList) being converted to a List instead of
a ShotList.
Addressing warning:

This call to matplotlib.use() has no effect because the backend has
already been chosen; matplotlib.use() must be called *before* pylab,
matplotlib.pyplot, or matplotlib.backends is imported for the first
time.
@buildbot-princeton
Copy link
Collaborator

Can one of the admins verify this patch?

@jnkh jnkh merged commit 0b76c9a into master Oct 10, 2019
@felker felker deleted the hotfix/package-deprecations branch October 10, 2019 19:54
@ASvyatkovskiy
Copy link
Contributor

Add to whitelist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants