Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

float point exception in printLong function in tags_int.cpp #759

Closed
92wyunchao opened this issue Mar 26, 2019 · 1 comment
Closed

float point exception in printLong function in tags_int.cpp #759

92wyunchao opened this issue Mar 26, 2019 · 1 comment
Labels
notReproducible Reported bugs not confirmed

Comments

@92wyunchao
Copy link

POC:
fpe_poc.zip

gdb --args ./exiv2 -pt ~/fpe_poc

Program received signal SIGFPE, Arithmetic exception.
0xb7e0c1a2 in Exiv2::Internal::printLong (os=..., value=...) at /home/rookie/exiv2-master/src/tags_int.cpp:2197
2197 if (r.second != 0) return os << static_cast(r.first) / r.second;
(gdb) bt
#0 0xb7e0c1a2 in Exiv2::Internal::printLong (os=..., value=...) at /home/rookie/exiv2-master/src/tags_int.cpp:2197
#1 0xb7c18f93 in Exiv2::Exifdatum::write (this=0x80d5878, os=..., pMetadata=) at /home/rookie/exiv2-master/src/exif.cpp:227
#2 0xb7c92723 in Exiv2::Metadatum::print (this=, pMetadata=0x80cbcb0) at /home/rookie/exiv2-master/src/metadatum.cpp:74
#3 0x080831ec in Action::Print::printMetadatum (this=, md=..., pImage=) at /home/rookie/exiv2-master/src/actions.cpp:745
#4 0x0807ff5c in Action::Print::printMetadata (this=, image=) at /home/rookie/exiv2-master/src/actions.cpp:542
#5 0x0807e113 in Action::Print::printList (this=0x80cbb20) at /home/rookie/exiv2-master/src/actions.cpp:531
#6 0x08070c67 in Action::Print::run (this=0x80cbb20, path="/home/rookie/fpe_poc") at /home/rookie/exiv2-master/src/actions.cpp:248
#7 0x0804dd9b in main (argc=, argv=) at /home/rookie/exiv2-master/src/exiv2.cpp:172

@piponazo
Copy link
Collaborator

piponazo commented May 5, 2019

Thanks for reporting. I could not reproduce the issue on master ... could you give more details about the platform, exiv2 version/commit used, compilation settings, etc ?

@piponazo piponazo added the notReproducible Reported bugs not confirmed label May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notReproducible Reported bugs not confirmed
Projects
None yet
Development

No branches or pull requests

2 participants