Skip to content

Commit 7dc74f1

Browse files
authored
Merge branch 'volatilityfoundation:develop' into issue_985
2 parents 0a6deae + 581c493 commit 7dc74f1

File tree

3 files changed

+36
-5
lines changed

3 files changed

+36
-5
lines changed

.github/workflows/stale.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v5
14+
with:
15+
days-before-issue-stale: 200
16+
days-before-issue-close: 60
17+
stale-issue-label: "stale"
18+
stale-issue-message: "This issue is stale because it has been open for 200 days with no activity."
19+
close-issue-message: "This issue was closed because it has been inactive for 60 days since being marked as stale."
20+
days-before-pr-stale: -1
21+
days-before-pr-close: -1
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}
23+
exempt-issue-labels: "enhancement,plugin-request,question"

doc/source/using-as-a-library.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ return a dictionary of plugin names and the plugin classes.
6767
Determine what configuration options a plugin requires
6868
------------------------------------------------------
6969

70-
For each plugin class, we can call the classmethod `requirements` on it, which will return a list of objects that
71-
adhere to the :py:class:`~volatility3.framework.interfaces.configuration.RequirementInterface` method. The various
72-
types of Requirement are split roughly in two,
70+
For each plugin class, we can call the classmethod
71+
:py:func:`~volatility3.framework.interfaces.configuration.ConfigurableInterface.get_requirements` on it, which will
72+
return a list of objects that adhere to the :py:class:`~volatility3.framework.interfaces.configuration.RequirementInterface`
73+
method. The various types of Requirement are split roughly in two,
7374
:py:class:`~volatility3.framework.interfaces.configuration.SimpleTypeRequirement` (such as integers, booleans, floats
7475
and strings) and more complex requirements (such as lists, choices, multiple requirements, translation layer
7576
requirements or symbol table requirements). A requirement just specifies a type of data and a name, and must be

volatility3/framework/layers/avml.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,26 @@
1919
try:
2020
# TODO: Find library for windows if needed
2121
try:
22-
# Linux/Mac
22+
# Linux
2323
lib_snappy = ctypes.cdll.LoadLibrary("libsnappy.so.1")
2424
except OSError:
2525
lib_snappy = None
2626

27+
try:
28+
if not lib_snappy:
29+
# macOS
30+
lib_snappy = ctypes.cdll.LoadLibrary("libsnappy.1.dylib")
31+
except OSError:
32+
lib_snappy = None
33+
2734
try:
2835
if not lib_snappy:
2936
# Windows 64
3037
lib_snappy = ctypes.cdll.LoadLibrary("snappy64")
3138
except OSError:
3239
lib_snappy = None
3340

34-
if lib_snappy:
41+
if not lib_snappy:
3542
# Windows 32
3643
lib_snappy = ctypes.cdll.LoadLibrary("snappy32")
3744

0 commit comments

Comments
 (0)