From 4fd9a1dbcebc10debd60e605e9b0b4d77810faf4 Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Wed, 1 Nov 2023 08:47:29 -0700 Subject: [PATCH] Add 1992/gson to bugs - use fgets() if possible A tip is already in thanks-for-fixes.md so I just referred to that file instead to not duplicate information (the information in that file is relevant to the change made already). --- bugs.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bugs.md b/bugs.md index 33869649f..b7e34766b 100644 --- a/bugs.md +++ b/bugs.md @@ -720,6 +720,20 @@ when you're cheating it ends up winning! Can you figure that out as well? # 1992 +## 1992 gson + +### STATUS: uses gets() - change to fgets() if possible +### Source code: [1992/gson/gson.c](1992/gson/gson.c) +### Information: [1992/gson/README.md])1992/gson/README.md_ + +Cody changed it so that the buffer size is `ARG_MAX+1` to try and get past the +problem of `gets()` being used in a more complex way. + +It would be ideal if it were to use `fgets()` though. This will probably be +looked at later but you're welcome to try and fix this too! A tip on how +`gets()` is being used is in the [thanks-for-fixes.md](thanks-for-fixes.md) +file. + ## 1992 kivinen