Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
SMDA
Copyright (c) 2018-2020, Daniel Plohmann and Steffen Enders

This product is licensed under the BSD 2-Clause License; see LICENSE.

It includes third-party code, listed below with the notices its license
requires.

================================================================================
rust_demangler
--------------------------------------------------------------------------------
src/smda/common/labelprovider/rust_demangler/ is derived from the rust_demangler
package by Team bi0s (https://github.com/teambi0s/rust_demangler), used under the
MIT License and modified for use here.

MIT License

Copyright (c) 2021 Team bi0s

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

================================================================================
Ghidra
--------------------------------------------------------------------------------
Parts of the same directory reimplement behaviour from Ghidra's Rust demanglers
(https://github.com/NationalSecurityAgency/ghidra), specifically
Ghidra/Features/Rust/src/main/java/ghidra/app/plugin/core/analysis/rust/demangler/
RustDemanglerV0.java and RustDemanglerLegacy.java: the recursion bound in the v0
demangler and the strict hash handling in the legacy demangler. Ghidra is
licensed under the Apache License, Version 2.0, available at

http://www.apache.org/licenses/LICENSE-2.0

Ghidra's own V0 demangler is a port of the rustc-demangle crate
(https://github.com/rust-lang/rustc-demangle), dual-licensed Apache-2.0 OR MIT.

================================================================================
LLVM demangler test corpus
--------------------------------------------------------------------------------
tests/msvc_reference_corpus.txt lists MSVC mangled symbol names taken from the
LLVM Project's demangler tests (llvm/test/Demangle/ms-*.test), together with the
spelling llvm-undname produces for each. It is used to measure this project's
MSVC demangler against a reference implementation.

The LLVM Project is licensed under the Apache License, Version 2.0, with the
LLVM exception. The license is available at

https://llvm.org/LICENSE.txt

================================================================================
Tarjan's algorithm
--------------------------------------------------------------------------------
src/smda/common/Tarjan.py is based on the implementation by Bas Westerbaan
(https://github.com/bwesterb/py-tarjan), refactored into a class for pooled
computation.

================================================================================
Lengauer-Tarjan dominator tree
--------------------------------------------------------------------------------
src/smda/common/DominatorTree.py is based on the implementation by Armin Rigo
(https://bitbucket.org/arigo/arigo/src/default/hack/pypy-hack/heapstats/dominator.py).
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ Thanks to Jonathan Crussell for helping me to beef up SMDA enough to make it a d
Thanks to Willi Ballenthin for improving the handling of ELF files, including properly handling API usage!
Thanks to Daniel Enders for his contributions to the parsing of the Golang function registry and label information!
The project uses the implementation of Tarjan's Algorithm by Bas Westerbaan and the implementation of Lengauer-Tarjan's Algorithm for the DominatorTree by Armin Rigo.
Rust symbol demangling is derived from the rust_demangler package by Team bi0s (MIT), with behaviour reimplemented from Ghidra's Rust demanglers (Apache-2.0); see [NOTICE](NOTICE) for the full list of third-party components.
Thanks to r0ny123 for his major code quality improvements via ruff and various contributions for several aspects of this project!

Pull requests welcome! :)
Loading