Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
lektor
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Kubat
lektor
Validations
7973ef37
Vérifiée
Valider
7973ef37
rédigé
3 years ago
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
JSON: Print invalid utf8 string to debug things
parent
f0fd5e7a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion
!162
Add a trie structure to get all the commands + various fixes
Modifications
2
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
CHANGELOG.md
+1
-0
1 ajout, 0 suppression
CHANGELOG.md
src/base/json.c
+2
-2
2 ajouts, 2 suppressions
src/base/json.c
avec
3 ajouts
et
2 suppressions
CHANGELOG.md
+
1
−
0
Voir le fichier @
7973ef37
...
...
@@ -8,6 +8,7 @@
-
Add: versions to database
-
Add: row_format option for lkt, for small screens (can be oneline, pretty or auto)
-
Fix: endiannes functions (again)
-
Fix: fix the
\_\_
insert command
-
Fix: linking on some platforms where the sqlite3_hard_heap_limit64 function is not present
-
Fix: Malloc the correct struct and store it into the right pointer type...
-
Change: now have macros to wrap malloc calls
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/base/json.c
+
2
−
2
Voir le fichier @
7973ef37
...
...
@@ -164,7 +164,7 @@ __decode_json(char *string, size_t len)
/* UTF-8 decode, 4 hex digits */
case
'u'
:
if
(
len
<
4
)
{
LOG_ERROR
(
"JSON"
,
"Invalid unicode string, abort decoding
"
);
LOG_ERROR
(
"JSON"
,
"Invalid unicode string, abort decoding
. String was: %s"
,
string
);
return
;
}
size
=
6
;
/* \u + 4 hex digits */
...
...
@@ -174,7 +174,7 @@ __decode_json(char *string, size_t len)
/* Oups */
default:
LOG_ERROR
(
"JSON"
,
"Invalid json string, abort the decoding
"
);
LOG_ERROR
(
"JSON"
,
"Invalid json string, abort the decoding
. String was: %s"
,
string
);
return
;
}
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter