Contents of 404 page #39

Closed
opened 2021-04-24 12:26:55 +02:00 by elieux · 1 comment
elieux commented 2021-04-24 12:26:55 +02:00 (Migrated from github.com)

URLs for files that are not present, e.g. http://0x0.st/foo.txt seem to respond with too much information:

Process 12873 stopped
* thread #1: tid = 12873, 0x00007f68a94cc970, name = 'fhost'
    frame #0:
Process 12873 stopped
* thread #8: tid = 12873, 0x00007f685d1afa60 fhost`get(path='/foo.txt') + 27 at fhost.c:139, name = 'fhost/responder', stop reason = invalid address (fault address: 0x30)
    frame #0: 0x00007f685d1afa60 fhost`get(path='/foo.txt') + 27 at fhost.c:139
   136   get(SrvContext *ctx, const char *path)
   137   {
   138       StoredObj *obj = ctx->store->query(shurl_debase(path));
-> 139       switch (obj->type) {
   140           case ObjTypeFile:
   141               ctx->serve_file_id(obj->id);
   142               break;
(lldb) q

Is this correct?

URLs for files that are not present, e.g. <http://0x0.st/foo.txt> seem to respond with too much information: ``` Process 12873 stopped * thread #1: tid = 12873, 0x00007f68a94cc970, name = 'fhost' frame #0: Process 12873 stopped * thread #8: tid = 12873, 0x00007f685d1afa60 fhost`get(path='/foo.txt') + 27 at fhost.c:139, name = 'fhost/responder', stop reason = invalid address (fault address: 0x30) frame #0: 0x00007f685d1afa60 fhost`get(path='/foo.txt') + 27 at fhost.c:139 136 get(SrvContext *ctx, const char *path) 137 { 138 StoredObj *obj = ctx->store->query(shurl_debase(path)); -> 139 switch (obj->type) { 140 case ObjTypeFile: 141 ctx->serve_file_id(obj->id); 142 break; (lldb) q ``` Is this correct?

On Saturday, April 24, 2021 12:27:07 PM CEST David Macek wrote:

URLs for files that are not present, e.g. http://0x0.st/foo.txt seem
to respond with too much information:

Process 12873 stopped
* thread #1: tid = 12873, 0x00007f68a94cc970, name = 'fhost'
    frame #0:
Process 12873 stopped
* thread #8: tid = 12873, 0x00007f685d1afa60
fhost`get(path='/foo.txt') + 27 at fhost.c:139, name =
'fhost/responder', stop reason = invalid address (fault address:
0x30) frame #0: 0x00007f685d1afa60 fhost`get(path='/foo.txt') + 27 at
fhost.c:139 136   get(SrvContext *ctx, const char *path)
   137   {
   138       StoredObj *obj = ctx->store->query(shurl_debase(path));
-> 139       switch (obj->type) {
   140           case ObjTypeFile:
   141               ctx->serve_file_id(obj->id);
   142               break;
(lldb) q

Is this correct?

Yes. It looks like debugger output but it’s not really.

Mia

On Saturday, April 24, 2021 12:27:07 PM CEST David Macek wrote: > URLs for files that are not present, e.g. <http://0x0.st/foo.txt> seem > to respond with too much information: > > ``` > Process 12873 stopped > * thread #1: tid = 12873, 0x00007f68a94cc970, name = 'fhost' > frame #0: > Process 12873 stopped > * thread #8: tid = 12873, 0x00007f685d1afa60 > fhost`get(path='/foo.txt') + 27 at fhost.c:139, name = > 'fhost/responder', stop reason = invalid address (fault address: > 0x30) frame #0: 0x00007f685d1afa60 fhost`get(path='/foo.txt') + 27 at > fhost.c:139 136 get(SrvContext *ctx, const char *path) > 137 { > 138 StoredObj *obj = ctx->store->query(shurl_debase(path)); > -> 139 switch (obj->type) { > 140 case ObjTypeFile: > 141 ctx->serve_file_id(obj->id); > 142 break; > (lldb) q > ``` > > Is this correct? Yes. It looks like debugger output but it’s not really. Mia
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mia/0x0#39
No description provided.