summaryrefslogtreecommitdiff
path: root/networkx/readwrite
diff options
context:
space:
mode:
authorbt-nia <74181389+bt-nia@users.noreply.github.com>2021-08-04 20:07:36 +0200
committerGitHub <noreply@github.com>2021-08-04 20:07:36 +0200
commit3fc58b95dc177292ed9b80391ed02747b2249e37 (patch)
tree8ad70aa4349b74dde35bb4e7a96347e2c60a72e7 /networkx/readwrite
parent2f33447477a0d2e50442672387d86186d760ca9a (diff)
downloadnetworkx-3fc58b95dc177292ed9b80391ed02747b2249e37.tar.gz
Added security warning to the pickle documentation (#5002)
* Added security warning to the pickle documentation This text should warn developers about the risks involved using this format. * add changed proposed from other pull request
Diffstat (limited to 'networkx/readwrite')
-rw-r--r--networkx/readwrite/gpickle.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/networkx/readwrite/gpickle.py b/networkx/readwrite/gpickle.py
index cee8b273..b6029710 100644
--- a/networkx/readwrite/gpickle.py
+++ b/networkx/readwrite/gpickle.py
@@ -4,6 +4,10 @@ Pickled Graphs
**************
Read and write NetworkX graphs as Python pickles.
+.. warning::
+ The pickle library is not secure and can be used to create arbitray objects.
+ Only unpickle data you trust - see :doc:`library/pickle` for additional information.
+
"The pickle module implements a fundamental, but powerful algorithm
for serializing and de-serializing a Python object
structure. "Pickling" is the process whereby a Python object hierarchy