bugWeeChat - Bugs: bug #41104, Changing line's prefix using...


bug #41104: Changing line's prefix using hdata_update crashed Weechat

Submitted by:  tomoe mami <tomoe_mami>
Submitted on:  Sun 05 Jan 2014 07:26:19 AM UTC  
Category:  script API plugins Severity:  3 - Normal
Item Group:  crash Status:  Fixed
Privacy:  Public Assigned to:  Sebastien Helleu <flashcode>
Originator Name:  Open/Closed:  Closed
Release:  0.4.2 IRC nick:  tomoe-mami

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Sun 05 Jan 2014 07:26:19 AM UTC, original submission:  

Using hdata_update to change the last line's prefix crashed Weechat. The test.lua script and gdb backtrace are in the attachments.

If I use the same script to change message or date, it works fine.

Also, some people have informed me to not use hdata to change stuffs (as it already says modification is forbidden in the top of hdata section of plugin docs), but the doc for hdata_update shows an example of python script changing the date of last line. If it's forbidden, I think that script example should be gone since it will confuse people or may be just make that function unavailable to script.

If modification is allowed but not prefix, then prefix should be removed from "List of hdata -> line_data -> Update allowed".

tomoe mami <tomoe_mami>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #30190:  test.lua added by tomoe_mami (409B - text/x-lua)
file #30191:  wee-gdb.txt added by tomoe_mami (9KiB - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by flashcode (Updated the item)
  • -email is unavailable- added by tomoe_mami (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-09 flashcode Open/ClosedOpen => Closed
    2014-01-05 flashcode StatusNone => Fixed
        Assigned toNone => flashcode
        Release3.3-dev => 0.4.2
    2014-01-05 tomoe_mami Attached File- => Added test.lua, #30190
        Attached File- => Added wee-gdb.txt, #30191

    Back to the top

    Powered by Savane 3.7