Skip to content

Commit 67aff26

Browse files
ComixHereddevillg
authored andcommitted
fix: correct the way of exporting only-app UAB
Signed-off-by: ComixHe <ComixHe1895@outlook.com>
1 parent 053fe00 commit 67aff26

6 files changed

Lines changed: 669 additions & 548 deletions

File tree

apps/uab/header/src/light_elf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class Elf
117117
shdrstrndx = shdr.sh_link;
118118
}
119119

120-
auto shdrstrtab = elfHeader.e_shoff + shdrstrndx * elfHeader.e_shentsize;
120+
auto shdrstrtab = elfHeader.e_shoff + (shdrstrndx * elfHeader.e_shentsize);
121121
bytesRead = ::pread(fd, &shdr, section_size, shdrstrtab);
122122
if (bytesRead == -1) {
123123
throw std::runtime_error("failed to read section header string table of" + path.string()

0 commit comments

Comments
 (0)