Differences From Artifact [722b2a0ac1]:
- File src/config.h — part of check-in [aadf91723a] at 2020-06-01 14:59:41 on branch trunk — Revert the change at [a3ab0c6186b43236]. In its place, add the blob_append_safe_html() routine that stricts HTML generated by Markdown to be in the set of safe elements as defined by Fossil-wiki. Omit any unsafe elements and/or attributes. Omit unmatched close-tags. Insert missing close-tags. (user: drh size: 7965) [more...]
To Artifact [2f3715d5a6]:
- File src/config.h — part of check-in [815b4fc493] at 2020-12-04 18:35:21 on branch trunk — The variadic function builtin_fossil_js_bundle_or() was using 0 as a sentinel to detect end-of-list, but that isn't equivalent to NULL in a list of pointed-to objects in all C compilers, on all systems. Using a GCC/Clang function attribute to force a warning when 0 is passed instead of NULL, then fixed all resulting warnings. This fixes the SEGV reported in [forum:/forumpost/5feca9c36a|forum post 5feca9c36a] on Mac OS X 10.11 with Clang from Xcode 7. Later versions of Clang on macOS don't have this problem, but it's still UB, so fixing it may solve some pain for us later on. (user: wyoung size: 8060) [more...]
| ︙ | ︙ | |||
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | #endif /* ** A marker for functions that never return. */ #if defined(__GNUC__) || defined(__clang__) # define NORETURN __attribute__((__noreturn__)) #elif defined(_MSC_VER) && (_MSC_VER >= 1310) # define NORETURN __declspec(noreturn) #else # define NORETURN #endif /* ** Number of elements in an array */ #define count(X) (int)(sizeof(X)/sizeof(X[0])) #define ArraySize(X) (int)(sizeof(X)/sizeof(X[0])) | > > > | 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 | #endif /* ** A marker for functions that never return. */ #if defined(__GNUC__) || defined(__clang__) # define NORETURN __attribute__((__noreturn__)) # define NULL_SENTINEL __attribute__((sentinel)) #elif defined(_MSC_VER) && (_MSC_VER >= 1310) # define NORETURN __declspec(noreturn) # define NULL_SENTINEL #else # define NORETURN # define NULL_SENTINEL #endif /* ** Number of elements in an array */ #define count(X) (int)(sizeof(X)/sizeof(X[0])) #define ArraySize(X) (int)(sizeof(X)/sizeof(X[0])) |
| ︙ | ︙ |