From 2b70f1231d750747d719cb33affd095e4d330f00 Mon Sep 17 00:00:00 2001 From: Aleksey Khudyakov Date: Mon, 23 May 2022 18:52:42 +0300 Subject: [PATCH] Update vector/src/Data/Vector/Generic.hs Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> --- vector/src/Data/Vector/Generic.hs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vector/src/Data/Vector/Generic.hs b/vector/src/Data/Vector/Generic.hs index af29b53e..518f8172 100644 --- a/vector/src/Data/Vector/Generic.hs +++ b/vector/src/Data/Vector/Generic.hs @@ -2206,10 +2206,10 @@ fromList :: Vector v a => [a] -> v a fromList = unstream . Bundle.fromList -- | /O(n)/ Convert the first @n@ elements of a list to a vector. It's --- expected that supplied list will be exactly @n@ elements long. As --- optimization this function allocates buffer for @n@ elements and --- could be used to DoS by exhausting memory if attacker controls that --- parameter. +-- expected that the supplied list will be exactly @n@ elements long. As +-- an optimization, this function allocates a buffer for @n@ elements, which +-- could be used for DoS-attacks by exhausting the memory if an attacker controls +-- that parameter. -- -- @ -- fromListN n xs = 'fromList' ('take' n xs)