This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pthread.h> | |
#include <cstdint> | |
#include <cstring> | |
/// a POC of OHOS's libc pthread mutex memory corruption bug | |
/// this file is published in BSD 3-Clause License | |
static void pthreadMutexMemoryCorruptPOC() { | |
pthread_mutexattr_t attr; | |
pthread_mutexattr_init(&attr); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// hyper_function.hpp | |
// libkinda_objc | |
// | |
// Created by Ling Guo on 2019/1/31. | |
// | |
#ifndef hyper_function_h | |
#define hyper_function_h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to edit dynamic library's dynamic-entry-library name. | |
Using LIEF lib (https://github.com/lief-project/LIEF). | |
GUOLING-MC4:~/Desktop$ pip install setuptools --upgrade | |
GUOLING-MC4:~/Desktop$ pip install lief 130 | |
GUOLING-MC4:~/Desktop$ python | |
Python 2.7.15 (default, May 1 2018, 16:44:08) | |
[GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.1)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import lief |