Changes between Version 1 and Version 2 of Ticket #28077, comment 5


Ignore:
Timestamp:
Oct 17, 2018, 12:44:02 AM (5 months ago)
Author:
cyberpunks
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28077, comment 5

    v1 v2  
    44Misuse is extremely unlikely to slip in since this is only used on string literals. But yeah, the ideal solution would be statically asserting at compile-time that the passed literal has no NUL bytes in it, so the only one is the byte being appended.
    55
    6 But defaulting to an empty string(in a case that is basically impossible to get) is the intentional documented behavior of the macro ever since it was first merged in #25185. Improving on that seems like a separate ticket.
     6But defaulting to an empty string(in a case that is basically impossible to get) is the intentional documented behavior of the macro ever since it was first [https://gitweb.torproject.org/tor.git/commit/?h=tor-0.3.4.1-alpha&id=bda1dfb9e0a863ae1ec1230c23ed74837be01a35 merged] in #25185. Improving on that seems like a separate ticket.