- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
从 https://github.com/secmob/PoCForCVE-2015-1528 编译 CVE-2015-1528 的 poc 时通过ndk-build,出现这个错误:
[armeabi] Compile++ thumb: exploitmedia <= shellcode.cpp
/home/android/Desktop/work_space/PoCForCVE-2015-1528/mediaserver/jni/shellcode.cpp:109:38: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void *run_code(char *code,dlopen_t dlopen_f){
^
/tmp/ccd5ZsxF.s: Assembler messages:
/tmp/ccd5ZsxF.s: Error: unaligned opcodes detected in executable segment
make: *** [/home/android/Desktop/work_space/PoCForCVE-2015-1528/mediaserver/obj/local/armeabi/objs/exploitmedia/shellcode.o] Error 1
注意:编译此 poc 的目的是教育。
最佳答案
未使用的自动分配变量可能会导致 --gdwarf-2
出现此问题
我不太了解这个问题,但这里有一个最小的可运行示例。
考虑这个 Linux ARMv8 hello world:
.text
.global _start
_start:
asm_main_after_prologue:
/* write */
mov x0, #1
ldr x1, =msg
ldr x2, =len
mov x8, #64
svc #0
/* exit */
mov x0, #0
mov x8, #93
svc #0
msg:
.ascii "hello syscall v8\n"
len = . - msg
可以很好地组装:
aarch64-linux-gnu-as --gdwarf-2 hello.S
在 Ubuntu 16.04 aarch64-linux-gnu-gcc 5.4.0 上。
现在,如果您删除对 msg
变量的引用:
.text
.global _start
_start:
asm_main_after_prologue:
/* exit */
mov x0, #0
mov x8, #93
svc #0
msg:
.ascii "hello syscall v8\n"
len = . - msg
它开始失败:
hello.S: Assembler messages:
hello.S: Error: unaligned opcodes detected in executable segment
所以不知何故,当引用被删除时,它一定认为 hello syscall v8
字符串是指令而不是数据。
关于android - 错误 : unaligned opcodes detected in executable segment,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32687459/
有关此计划的先前问题: Blur effect on bitmap using C Translating four nested loops into a CUDA kernel 我正在使用 Vis
今天下午我更新了我的 sdk,然后我像往常一样运行我的应用程序,我得到了这样的错误。 ${dir}\[appname]-debug-androidTest-unaligned.apk 在磁盘上不存在
我正在编译下面的简单代码,并在 gdb 中运行它。我在 strcpy 行设置了一个断点,一旦我为输入运行它,例如 abc,然后按 s,我得到以下错误: Breakpoint 1, main (argc
适用于ARM的IAR编译器... 我有一个打包的结构 #pragma pack(push, 4) typedef struct { int a; double b; } my_t
从 https://github.com/secmob/PoCForCVE-2015-1528 编译 CVE-2015-1528 的 poc 时通过ndk-build,出现这个错误: [armeabi
我开始学习一些关于 SIMD 内在函数的知识。我注意到对于某些函数,存在对齐和未对齐版本,例如 _mm_store_si128 和 _mm_storeu_si128。我的问题是,这些函数的执行方式是否
我正在尝试转换一些为 MSVC 编写的 C++ 代码,以便它可以在 GCC 或 Clang 上运行。 违规关键字是 UNALIGNED pData 是LPCBYTE 代码示例如下: INT8 som
当放 2 个 jar 文件时,打包 APK app-debug-unaligned.apk 时出现此错误: httpclient-4.3.5.jar httpmime-4.3.5.jar 在Sync
在 android studio 中,当我运行 espresso 测试时,控制台输出: Installing APK: /home/roroco/Dropbox/jvs/ro-adr/testStar
昨晚我将我的 android studio 更新到 0.5.3,从那时起,每当我尝试生成签名的 apk 时,我都会收到此错误消息。当我只是在 android studio 上运行项目时,它不会发生。
我正在关注确切的 instructions从 Meteor 发布 Android 应用程序。我取得了进步,但最后我遇到了错误。 >>>> jarsigner -verbose -sigalg SHA1
我正在将代码从 Windows 移植到 Linux(Red Hat Linux 或 Fed)。在现有代码中,我确实找到了具有(数据类型 UNALIGNED*)引用的代码。 你能告诉我吗1) 移植到 L
我总是得到“app-release-unaligned.apk”。我无法获得“app-release.apk”。但是在我更新 Android SDK 之前,我可以在按下 Build->Generate
今天早上,当我打开我已经工作了一周左右的 Android Studio 项目时,它突然无法在我的手机上运行该应用程序。它可以与 gradle 同步而不会出现任何错误,但是当我尝试运行该应用程序时出现以
在构建变体设置为“调试”模式的 android studio 中,我发现了两个 apk 输出 app-debug.apk app-debug-unaligned.apk 这些文件有什么区别? 最佳答案
所以我读入了一个包含 29 列的数据表,并添加了一个索引列(总共 30 个)。 Data = pd.read_excel(os.path.join(BaseDir, 'test.xlsx')) Dat
我正在尝试在 Ubuntu 20.04 docker 容器中运行应用程序。它启动但很快崩溃。 使用 GDB 我已经追踪到这个 Thread 36 "Emuthread - Sta" received
使用 android gradle 插件2.2.0: buildscript { repositories { maven { url "https://plugins.gra
我是一名优秀的程序员,十分优秀!