summary refs log tree commit diff stats
path: root/lib/pure/httpclient.nim
diff options
context:
space:
mode:
authoralaviss <leorize+oss@disroot.org>2021-06-14 11:26:12 -0500
committerGitHub <noreply@github.com>2021-06-14 18:26:12 +0200
commit0adb47aa15e242983c8251d85367c0fe45fc5f12 (patch)
tree335397579a790b5b689199a9b2d14a3d5015781e /lib/pure/httpclient.nim
parent2d34b1f5bc45a180d1b53d6c24857133859a4f46 (diff)
downloadNim-0adb47aa15e242983c8251d85367c0fe45fc5f12.tar.gz
system/excpt: check if the exception is not nil before pop (#18247)
In CPS we would consume an exception in the except branch by stashing it
into a local then remove the exception from Nim environment so as not to
leak it to other code that would be running before the continuation
continues

However since popCurrentException() assumes that the exception always
exist, removing the exception from an except branch will cause a
SIGSEGV to happen. This commit fixes that.
Diffstat (limited to 'lib/pure/httpclient.nim')
0 files changed, 0 insertions, 0 deletions