Menu

#283 lvstring.h: overflow issue when building lvtinydom.cpp (ndk r8e)

All platforms
closed-fixed
None
2
2013-07-08
2013-07-01
No

The compilation error that occurs is:

jni/../../crengine/src/../include/lvstring.h: In member function 'virtual void ldomDocumentWriterFilter::appendStyle(const lChar16*)':
jni/../../crengine/src/../include/lvstring.h:589:40: error: assuming signed overflow does not occur when assuming that (X - c) > X is always false [-Werror=strict-overflow]

The attached patch fixes the issue for all non-mips target. For the latter, I could unfortunately not find a solution and had to disable it locally.

1 Attachments

Discussion

  • Vadim Lopatin

    Vadim Lopatin - 2013-07-08
    • assigned_to: Vadim Lopatin
    • Priority: 5 --> 2
     
  • Vadim Lopatin

    Vadim Lopatin - 2013-07-08

    fixed

     
  • Vadim Lopatin

    Vadim Lopatin - 2013-07-08
    • status: open --> closed-fixed
     

Log in to post a comment.