phobos/std
Anton Curmanschii de7ad2282e Fix a potential memory leak, typos
On line 2741, `if (nBytesNeeded < maxStack)` will force memory allocation in the case when `nBytesNeeded == maxStack` , even though it's not technically required, because the stack buffer can hold those bytes.
On line 2762 though, the check `if (nBytesNeeded > maxStack)` is slightly wrong then. If `nBytesNeeded == maxStack`, it would cause a memory leak.
The fix is to not allocate if they're equal.
2021-12-12 05:39:12 +00:00
..
algorithm Issue 22582 - [std.algorithm.count] predicate does not implicitly convert to bool (#8330) 2021-12-10 15:16:45 +00:00
container Use return scope instead of just return 2021-11-26 17:03:06 +01:00
datetime Fix scope usage of SysTime/TimeZone 2021-11-18 23:49:51 +00:00
digest Remove redundant access specifier from Phobos 2021-10-27 10:04:23 +03:00
experimental Fix Issue 22249 - std.experimental.checkedint: Warn.onLowerBound does not compile 2021-08-29 23:05:05 +00:00
format Reduce template bloat in IntegralTypeOf-overload of formatValueImpl 2021-10-22 09:37:40 +00:00
internal Use return scope instead of just return 2021-11-26 17:03:06 +01:00
math Merge remote-tracking branch 'upstream/stable' into merge_stable 2021-11-09 10:30:28 +02:00
net Use return scope instead of just return 2021-11-26 17:03:06 +01:00
range Remove redundant access specifier from Phobos 2021-10-27 10:04:23 +03:00
regex std.regex: Doc: Synopsis: Fix typo&spacing, clarify an example, add another. 2021-11-27 23:21:11 +02:00
uni Add explicit return to inout functions 2021-11-16 23:22:33 +00:00
windows Remove redundant access specifier from Phobos 2021-10-27 10:04:23 +03:00
array.d Completed attribute lithany on sameTail and sameHead 2021-09-15 03:09:09 +00:00
ascii.d Reduce the number of isAggregateType!T checks 2020-08-18 03:50:12 +02:00
base64.d Annotate std/base64.d to please dlang/dmd#12520 #8076 2021-05-18 03:28:07 +02:00
bigint.d add more return/scope to pure bigint functions 2021-05-30 01:10:13 +02:00
bitmanip.d Remove need for Unqual in EndianSwapper 2021-09-03 14:30:32 +00:00
compiler.d
complex.d std.complex: Add missing imports in unittests for non-DigitalMars targets 2021-05-11 14:30:35 +02:00
concurrency.d Remove redundant access specifier from Phobos 2021-10-27 10:04:23 +03:00
conv.d remove workaround for issue 20150 2021-08-25 23:36:22 +02:00
csv.d std.csv allow un equal number of value separators 2021-08-26 15:37:24 +00:00
demangle.d
encoding.d Rename the initial value of some enums from init to _init 2021-05-12 10:56:46 +08:00
exception.d Fix 22386 - Omit unreachable throw in assertThrown with noreturn value 2021-10-14 15:40:57 +00:00
file.d Fix scope usage of SysTime/TimeZone 2021-11-18 23:49:51 +00:00
functional.d Refactor adjoin 2021-10-18 14:11:24 +02:00
getopt.d Fix Issue 22394 - std.getopt cannot handle "-" 2021-10-17 01:48:51 +00:00
json.d Use return scope instead of just return 2021-11-26 17:03:06 +01:00
mathspecial.d Throughout Phobos use core.math intrinsics instead of std.math wrappers 2021-03-02 07:09:08 +01:00
meta.d Use alias assignment in staticMap (#8039) 2021-10-26 22:06:41 +00:00
mmfile.d std.mmfile: Add testmmfile from dmd testsuite as a unittest 2021-08-26 12:17:32 +00:00
numeric.d Merge pull request #7975 from ibuclaw/numeric/lcm 2021-04-22 15:36:55 +08:00
outbuffer.d Add compile-time checked variants of writef and writefln to std.outbuffer. 2021-08-09 14:21:54 -07:00
package.d Add forgotten modules to std.package. 2021-03-12 07:21:39 +01:00
parallelism.d Fix a potential memory leak, typos 2021-12-12 05:39:12 +00:00
path.d Fix Issue 19727 - std.algorithm.endsWith fails to compile while startsWith succeeds. 2021-08-12 05:09:14 +03:00
process.d Use return scope instead of just return 2021-11-26 17:03:06 +01:00
random.d std.random: Fix test for version(X32) targets 2021-11-30 13:25:09 +00:00
signals.d Issue 19842 - only class member functions must be used be used as slots 2021-07-13 10:33:38 +00:00
socket.d Replace FieldProxy with @property ref functions 2021-10-03 08:15:39 +00:00
stdint.d
stdio.d Add explicit return to inout functions 2021-11-16 23:22:33 +00:00
string.d indent multiline param description 2021-09-17 04:20:30 -05:00
sumtype.d Fix Issue 22117 - Can't store scope pointer in a SumType 2021-08-23 21:52:40 -04:00
system.d Fix Issue 22458 - OpenBSD: Add OpenBSD to std/system.d OS list 2021-10-31 23:19:28 +00:00
traits.d Merge pull request #8291 from andralex/issue22408 2021-10-26 11:12:57 +03:00
typecons.d Fix scope usage of SysTime/TimeZone 2021-11-18 23:49:51 +00:00
typetuple.d
uri.d Adapt imports of std.format to new structure of std.format. 2021-03-19 13:22:00 +01:00
utf.d Use return scope instead of just return 2021-11-26 17:03:06 +01:00
uuid.d isSomeChar!(Unqual!T) -> isSomeChar!T 2021-07-24 09:26:46 +00:00
variant.d Using LINK macro 2021-11-11 08:32:02 +01:00
xml.d add return scope to xml.toType 2021-05-30 01:07:37 +02:00
zip.d
zlib.d