Hello.

I am the developer, thanks for reporting!

Sebastian Andrzej Siewior wrote in
 <[email protected]>:
 |Package: s-nail
 |Version: 14.9.25-1
 |Severity: normal
 |Tags: sid
 |control: affects -1 src:openssl
 |User: [email protected]
 |Usertags: openssl-4.0
 |
 |OpenSSL 4.0 is in experimental. This package fails to build against it:
 ...
 || /build/reproducible-path/s-nail-14.9.25/src/mx/xtls.c:300:5: warning: \
 || initializer-string for array of 'char' truncates NUL terminator but \
 || destination lacks 'nonstring' attribute (9 chars into 8 available) \
 || [-Wunterminated-string-initialization]
 ||   300 |    {"TLSv1.3\0", SSL_OP_NO_TLSv1_3, TLS1_3_VERSION, TRU1,TRU1,FAL\
 ||   0,FAL0,{0}},
 |||     ^~~~~~~~~~~

Yes, that is -Wunterminated-string-initialization string related
and fixed in 14.10.0-alpha.  (Commit message say

    I lived under the impression that a compiler would see the
    trailing NUL and accept the string is already terminated.
    Like that i can easily detect char[] are sufficiently spaced,
    since i get a warning if the initializer will not fit.

    I found

      https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116082

    during my search, where i cited K&R, and that i know about the
    .asciz / .ascii difference, but again, thought ...

    But uecker@ proved i am wrong.  A bit shocked, but luckily
    i started using this after 2010/1, so no old C++ code is infected.
    So here we drop this notation.

So long story short, .. i would simply ignore that if warnings are
errors.

 ...
 || invalid use of incomplete typedef 'ASN1_TIME' {aka 'const struct \
 || asn1_string_st'}
 ...
 || invalid use of incomplete typedef 'ASN1_IA5STRING' {aka 'struct asn1_str\
 ...

I will look into those, see what i can do about that, and report
back, yet

  https://openssl-library.org/post/2026-04-13-asn1_string/

says

  The most common case by far requires a straightforward change:

    foo->data changed to ASN1_STRING_get0_data(foo)
    foo->length changed to ASN1_STRING_length(foo)

implies it could become a larger diff.

Thanks again!

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)

Reply via email to