Hello,

building libpano with gcc 8 (instead of 7) triggers a couple of new
warnings that might be interesting:

-----------------------
parser.c: In function 'ReadImageDescription':
parser.c:1854:38: warning: '%s' directive writing up to 65535 bytes into a 
region of size 256 [-Wformat-overflow=]
             sprintf( sBuf.destName, "%s", buf );
                                      ^~   ~~~
In file included from /usr/include/stdio.h:862,
                 from filter.h:26,
                 from parser.c:47:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: 
'__builtin___sprintf_chk' output between 1 and 65536 bytes into a destination 
of size 256
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
parser.c:1850:37: warning: '%s' directive writing up to 65535 bytes into a 
region of size 256 [-Wformat-overflow=]
             sprintf( sBuf.srcName, "%s", buf);
                                     ^~   ~~~
In file included from /usr/include/stdio.h:862,
                 from filter.h:26,
                 from parser.c:47:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: 
'__builtin___sprintf_chk' output between 1 and 65536 bytes into a destination 
of size 256
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
parser.c: In function 'ParseScript':
parser.c:453:45: warning: '%s' directive writing up to 65535 bytes into a 
region of size 512 [-Wformat-overflow=]
                         sprintf( im->name, "%s", buf );
                                             ^~   ~~~
In file included from /usr/include/stdio.h:862,
                 from filter.h:26,
                 from parser.c:47:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: 
'__builtin___sprintf_chk' output between 1 and 65536 bytes into a destination 
of size 512
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[...]
correct.c: In function 'getFrame':
correct.c:749:24: warning: '%d' directive writing between 1 and 10 bytes into a 
region of size 8 [-Wformat-overflow=]
     sprintf( percent, "%d", (int) (xul * 100)/(dx>0?dx:1));
                        ^~
correct.c:749:23: note: directive argument in the range [0, 2147483647]
     sprintf( percent, "%d", (int) (xul * 100)/(dx>0?dx:1));
                       ^~~~
In file included from /usr/include/stdio.h:862,
                 from filter.h:26,
                 from correct.c:35:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: 
'__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of 
size 8
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[...]
ColourBrightness.c: In function 'ReadHistograms':
ColourBrightness.c:1281:55: warning: '%s' directive writing up to 511 bytes 
into a region of size 486 [-Wformat-overflow=]
       sprintf(tempString2, "Could not open TIFF file [%s]", tempString);
                                                       ^~    ~~~~~~~~~~
In file included from /usr/include/stdio.h:862,
                 from filter.h:26,
                 from ColourBrightness.c:32:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: note: 
'__builtin___sprintf_chk' output between 28 and 539 bytes into a destination of 
size 512
   return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       __bos (__s), __fmt, __va_arg_pack ());
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------------------------


Also, the following warnings is thrown a couple of times in the test-suite:
Comparing reference images: 2
reference/tiff_m_cropped0000.tif -> tests/tiff_m_cropped0000.tif
TIFFReadDirectory: Warning, Sum of Photometric type-related color channels and 
ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as 
ExtraSamples..
[...]

cu Andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/20180923124810.GB1310%40argenau.bebt.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to